From 45ba7fde24c779c008e25089489d44ed35dc0f7b Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 13 Apr 2022 21:15:35 +0100 Subject: Show the crash dialog when an off thread job fails. Before the exception would be lost to time in most cases. --- enigma-swing/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/enigma-swing/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java b/enigma-swing/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java index 5f6dbdb5..d76ddea9 100644 --- a/enigma-swing/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java +++ b/enigma-swing/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java @@ -96,6 +96,7 @@ public class ProgressDialog implements ProgressListener, AutoCloseable { try (progress) { runnable.run(progress); } catch (Exception e) { + CrashDialog.show(e); throw new RuntimeException(e); } }); -- cgit v1.2.3