diff options
author | Wolfgang Müller | 2024-09-19 20:33:58 +0200 |
---|---|---|
committer | Wolfgang Müller | 2024-09-19 20:33:58 +0200 |
commit | f6c418b0974f3cc70ac9685bbec67e0e6d797b9f (patch) | |
tree | 3ea43d4ff2d10ecac361b2a2d9d44f4a02f3f1f4 | |
parent | 4410255c63b75e8a119d237432cabe972cb33359 (diff) | |
download | later-f6c418b0974f3cc70ac9685bbec67e0e6d797b9f.tar.gz |
Improve error messages
-rwxr-xr-x | later | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(): |