From 6fa0a9a53abf8000437a35b5438c9f1a1c35d83f Mon Sep 17 00:00:00 2001 From: Tatu Aalto Date: Sat, 16 Mar 2024 02:29:15 +0200 Subject: [PATCH] Better error --- src/robotlibcore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/robotlibcore.py b/src/robotlibcore.py index 6d41922..8fa8f56 100644 --- a/src/robotlibcore.py +++ b/src/robotlibcore.py @@ -51,7 +51,7 @@ def _translation(translation: Optional[Path] = None): try: return json.load(file) except json.decoder.JSONDecodeError: - logger.warn(f"Could not find file: {translation}") + logger.warn(f"Could not convert json file {translation} to dictionary.") return {} else: return {}