diff --git a/source/net/sourceforge/filebot/cli/GroovyPad.java b/source/net/sourceforge/filebot/cli/GroovyPad.java index f233ec66..541d7966 100644 --- a/source/net/sourceforge/filebot/cli/GroovyPad.java +++ b/source/net/sourceforge/filebot/cli/GroovyPad.java @@ -237,7 +237,10 @@ public class GroovyPad extends JFrame { shell.evaluate("println();", binding, true); } } catch (ScriptException e) { - e.getCause().getCause().printStackTrace(); + while (e.getCause() instanceof ScriptException) { + e = (ScriptException) e.getCause(); + } + e.printStackTrace(); } catch (Throwable e) { e.printStackTrace(); }