From efcbaed2e2c6c1da2ffd5f654bac1c01cd59a526 Mon Sep 17 00:00:00 2001 From: Konloch Date: Sun, 29 Sep 2024 22:04:49 -0600 Subject: [PATCH] Show Exceptions To Users If It Cancels Their Action --- .../java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java | 2 +- .../the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java b/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java index 86ba437b..dda8df13 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java @@ -129,7 +129,7 @@ public class GlobalHotKeys } catch (Exception ex) { - ex.printStackTrace(); + BytecodeViewer.handleException(ex); } }, "Resource Export"); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java index 53bb8b8d..3eab06b0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java @@ -265,7 +265,7 @@ public class PluginWriter extends JFrame } catch (Exception e) { - e.printStackTrace(); + BytecodeViewer.handleException(e); } }