From 25fc5f7126df75eae2eba3628ec414f2796acded Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 15 Mar 2005 12:15:22 +0000 Subject: [PATCH] Log error and rethrow exception in initScriptingEngine() --- src/helma/framework/core/RequestEvaluator.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index a1b05c41..efecbbde 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -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()); + } } } }