* display errors correctly

This commit is contained in:
Reinhard Pointner 2013-12-21 06:51:59 +00:00
parent 8211902ca0
commit 1525623ccd
1 changed files with 4 additions and 1 deletions

View File

@ -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();
}