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 86ba437bf..dda8df133 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 @@ else if ((e.getKeyCode() == KeyEvent.VK_S) && ((e.getModifiersEx() & KeyEvent.CT } 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 53bb8b8de..3eab06b04 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 void save() } catch (Exception e) { - e.printStackTrace(); + BytecodeViewer.handleException(e); } }