Print stack trace if it hasn't been thrown by the ScriptingEngine
This commit is contained in:
parent
9808820d92
commit
e35a53f5e8
1 changed files with 5 additions and 0 deletions
|
@ -392,6 +392,11 @@ public final class RequestEvaluator implements Runnable {
|
||||||
app.logEvent("Exception in " +
|
app.logEvent("Exception in " +
|
||||||
Thread.currentThread() + ": " + x);
|
Thread.currentThread() + ": " + x);
|
||||||
|
|
||||||
|
// Dump the profiling data to System.err
|
||||||
|
if (app.debug && !(x instanceof ScriptingException)) {
|
||||||
|
x.printStackTrace ();
|
||||||
|
}
|
||||||
|
|
||||||
// set done to false so that the error will be processed
|
// set done to false so that the error will be processed
|
||||||
done = false;
|
done = false;
|
||||||
error = x.getMessage();
|
error = x.getMessage();
|
||||||
|
|
Loading…
Add table
Reference in a new issue