aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2024-09-19 20:33:58 +0200
committerWolfgang Müller2024-09-19 20:33:58 +0200
commitf6c418b0974f3cc70ac9685bbec67e0e6d797b9f (patch)
tree3ea43d4ff2d10ecac361b2a2d9d44f4a02f3f1f4
parent4410255c63b75e8a119d237432cabe972cb33359 (diff)
downloadlater-f6c418b0974f3cc70ac9685bbec67e0e6d797b9f.tar.gz
Improve error messages
-rwxr-xr-xlater4
1 files 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():