mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-21 11:19:11 -05:00
fix: rebuild the database named in the error
This commit is contained in:
1 parent
642896346f
commit
6008fe352c
2 files changed
+20
-2
No files matched your search
+2
-2
@@ -59,12 +59,12 @@ def load_database(db_path: str) -> dict:
|
||||
except FileNotFoundError:
|
||||
raise DatabaseUnreadable(
|
||||
f"{db_path} not found. Build it with: python scripts/generate_db.py "
|
||||
"--force --bios-dir bios --output database.json"
|
||||
f"--force --bios-dir bios --output {db_path}"
|
||||
) from None
|
||||
except json.JSONDecodeError as exc:
|
||||
raise DatabaseUnreadable(
|
||||
f"{db_path} is not valid JSON ({exc}). Rebuild it with: "
|
||||
"python scripts/generate_db.py --force --bios-dir bios --output database.json"
|
||||
f"python scripts/generate_db.py --force --bios-dir bios --output {db_path}"
|
||||
) from None
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user