Skip to content

Commit

Permalink
Improve unhandled exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Dec 11, 2023
1 parent 807bcf1 commit 4e1cbff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcft.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def show_unhandled_exception(excepttype, exception, tb):
error_message_title = "Encountered an unhandled error"
stack_trace = traceback.format_exception(excepttype, exception, tb)
error_message = "GCFT encountered an unhandled error.\n"
error_message += "Please report this issue with a screenshot of this message.\n"
error_message += "Please report this issue with a screenshot of this message.\n\n"
error_message += f"{exception}\n\n"
error_message += "\n".join(stack_trace)
QMessageBox.critical(None, error_message_title, error_message)
sys.excepthook = show_unhandled_exception
Expand Down

0 comments on commit 4e1cbff

Please sign in to comment.