summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar modmuss502022-04-13 21:15:35 +0100
committerGravatar modmuss502022-04-13 21:15:35 +0100
commit45ba7fde24c779c008e25089489d44ed35dc0f7b (patch)
treeae3ec0b1f0e656e9ea6f8af45ddd018e69ffe929
parentAdd a check for space indentation (#433) (diff)
downloadenigma-45ba7fde24c779c008e25089489d44ed35dc0f7b.tar.gz
enigma-45ba7fde24c779c008e25089489d44ed35dc0f7b.tar.xz
enigma-45ba7fde24c779c008e25089489d44ed35dc0f7b.zip
Show the crash dialog when an off thread job fails.
Before the exception would be lost to time in most cases.
-rw-r--r--enigma-swing/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java1
1 files changed, 1 insertions, 0 deletions
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 {
96 try (progress) { 96 try (progress) {
97 runnable.run(progress); 97 runnable.run(progress);
98 } catch (Exception e) { 98 } catch (Exception e) {
99 CrashDialog.show(e);
99 throw new RuntimeException(e); 100 throw new RuntimeException(e);
100 } 101 }
101 }); 102 });