Log error and rethrow exception in initScriptingEngine()
This commit is contained in:
parent
d4c3769bf5
commit
25fc5f7126
1 changed files with 8 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue