From e587da070416d7970186904b7ec314afeca76afc Mon Sep 17 00:00:00 2001 From: "Christian G. Warden" Date: Tue, 7 Nov 2023 07:32:43 -0600 Subject: [PATCH] Display Error Message KeyError Occurs with redo-log --- redo/cmd_log.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redo/cmd_log.py b/redo/cmd_log.py index 3f86511..35fe565 100644 --- a/redo/cmd_log.py +++ b/redo/cmd_log.py @@ -84,9 +84,9 @@ def catlog(t): else: try: sf = state.File(name=t, allow_add=False) - except KeyError: - sys.stderr.write('redo-log: [%s] %r: not known to redo.\n' - % (os.getcwd(), t,)) + except KeyError as e: + sys.stderr.write('redo-log: [%s] %r: not known to redo (%s).\n' + % (os.getcwd(), t, e,)) sys.exit(24) fid = sf.id del sf