mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
add message to catch-all exception block
This commit is contained in:
parent
5726bc6197
commit
41575478a4
1 changed files with 5 additions and 1 deletions
|
@ -51,5 +51,9 @@ def cli(manual_args=None):
|
||||||
traceback.print_tb(sys.exc_info()[2])
|
traceback.print_tb(sys.exc_info()[2])
|
||||||
return 1
|
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
|
return 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue