Print stack trace if it hasn't been thrown by the ScriptingEngine

This commit is contained in:
hns 2003-06-05 17:12:15 +00:00
parent 9808820d92
commit e35a53f5e8

View file

@ -392,6 +392,11 @@ public final class RequestEvaluator implements Runnable {
app.logEvent("Exception in " +
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
done = false;
error = x.getMessage();