From 4babc5c850d870028edcc7c2f23ad1faf75f93e9 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 22 Nov 2002 14:40:51 +0000 Subject: [PATCH] * Do not print out exception messages multiple times. * Create a scripting exception wrapping the original exception. --- src/helma/scripting/fesi/FesiEngine.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/helma/scripting/fesi/FesiEngine.java b/src/helma/scripting/fesi/FesiEngine.java index 06de8a8c..8a1fd32d 100644 --- a/src/helma/scripting/fesi/FesiEngine.java +++ b/src/helma/scripting/fesi/FesiEngine.java @@ -419,15 +419,11 @@ public final class FesiEngine implements ScriptingEngine { // has the request timed out? If so, throw TimeoutException if (evaluator.thread != Thread.currentThread()) throw new TimeoutException (); - // create and throw a ScriptingException with the right message - String msg = x.getMessage (); - if (msg == null || msg.length() < 10) - msg = x.toString (); if (app.debug ()) { - System.err.println ("Error in Script: "+msg); x.printStackTrace (); } - throw new ScriptingException (msg); + // create and throw a ScriptingException wrapping the original exception + throw new ScriptingException (x); } }