* display errors correctly
This commit is contained in:
parent
8211902ca0
commit
1525623ccd
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue