Display names of problematic story JSON files

This commit is contained in:
Gnome Ann 2021-08-24 19:29:40 -04:00
parent cfb622b47f
commit cbdf3fa037
1 changed files with 2 additions and 2 deletions

View File

@ -67,14 +67,14 @@ def getstoryfiles():
try:
js = json.load(f)
except:
print("Browser loading error: Story file is malformed or not a JSON file.")
print(f"Browser loading error: {file} is malformed or not a JSON file.")
f.close()
continue
f.close()
try:
ob["actions"] = len(js["actions"])
except TypeError:
print("Browser loading error: Story file has incorrect format.")
print(f"Browser loading error: {file} has incorrect format.")
continue
list.append(ob)
return list