From f6c418b0974f3cc70ac9685bbec67e0e6d797b9f Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 19 Sep 2024 20:33:58 +0200 Subject: Improve error messages --- later | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/later b/later index 3d43578..417e9f3 100755 --- a/later +++ b/later @@ -74,7 +74,7 @@ class TitleMap: # Clobber the title cache if it was corrupted self.commit_to_disk = True except Exception as err: - sys.exit(f"later: {err}") + sys.exit(f"later: cannot read title cache: {err}") def get(self, key): title = self.map.get(key) @@ -122,7 +122,7 @@ class TitleMap: with open(self.path, "w") as handle: json.dump(self.map, handle) except OSError as err: - sys.exit(f"later: {err}") + sys.exit(f"later: cannot write title cache: {err}") def entries(): -- cgit v1.2.3-2-gb3c3