diff options
| author | 2022-04-13 21:15:35 +0100 | |
|---|---|---|
| committer | 2022-04-13 21:15:35 +0100 | |
| commit | 45ba7fde24c779c008e25089489d44ed35dc0f7b (patch) | |
| tree | ae3ec0b1f0e656e9ea6f8af45ddd018e69ffe929 /enigma-swing | |
| parent | Add a check for space indentation (#433) (diff) | |
| download | enigma-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.
Diffstat (limited to 'enigma-swing')
| -rw-r--r-- | enigma-swing/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java | 1 |
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 | }); |