Log error and rethrow exception in initScriptingEngine()

This commit is contained in:
hns 2005-03-15 12:15:22 +00:00
parent d4c3769bf5
commit 25fc5f7126

View file

@ -100,6 +100,14 @@ public final class RequestEvaluator implements Runnable {
app.logEvent("*** Error creating scripting engine: ");
app.logEvent("*** " + t.toString());
app.logEvent("******************************************");
app.logError("Error creating scripting engine", t);
// rethrow exception
if (t instanceof RuntimeException) {
throw((RuntimeException) t);
} else {
throw new RuntimeException(t.toString());
}
}
}
}