From cbdf3fa037bb43b7871b84e6da225c8bea774fed Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Tue, 24 Aug 2021 19:29:40 -0400 Subject: [PATCH] Display names of problematic story JSON files --- fileops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fileops.py b/fileops.py index 70fd79b0..7ae96836 100644 --- a/fileops.py +++ b/fileops.py @@ -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