diff --git a/pre_commit_hooks/string_fixer_for_jupyter_notebooks.py b/pre_commit_hooks/string_fixer_for_jupyter_notebooks.py index ab4be97..1ab47f4 100644 --- a/pre_commit_hooks/string_fixer_for_jupyter_notebooks.py +++ b/pre_commit_hooks/string_fixer_for_jupyter_notebooks.py @@ -16,7 +16,7 @@ def fix_strings(filename: str) -> int: with open(filename) as f: notebook_contents = json.load(f) except json.JSONDecodeError as exc: - print(f'{filename}: Failed to load') + print(f'{filename}: Failed to load ({exc})') return 1 else: cells = notebook_contents['cells']