From 41575478a43d69d6b38f212390c7c9e182f11dd8 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 12 Feb 2022 13:42:37 -0800 Subject: [PATCH] add message to catch-all exception block --- jrnl/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jrnl/cli.py b/jrnl/cli.py index 24dcab9e..e90c8b66 100644 --- a/jrnl/cli.py +++ b/jrnl/cli.py @@ -51,5 +51,9 @@ def cli(manual_args=None): traceback.print_tb(sys.exc_info()[2]) return 1 - print_msg(f"{type(e).__name__}\n", str(e), msg=Message.ERROR) + file_issue = ( + "\n\nThis is probably a bug. Please file an issue at:" + + "\nhttps://github.com/jrnl-org/jrnl/issues/new/choose" + ) + print_msg(f"{type(e).__name__}\n", f"{e}{file_issue}", msg=Message.ERROR) return 1