cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: r290910 - /cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
Date Thu, 22 Sep 2005 08:54:26 GMT
Author: sylvain
Date: Thu Sep 22 01:54:23 2005
New Revision: 290910

URL: http://svn.apache.org/viewcvs?rev=290910&view=rev
Log:
Better error messages

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java?rev=290910&r1=290909&r2=290910&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
Thu Sep 22 01:54:23 2005
@@ -600,11 +600,11 @@
                     thrScope.setLock(true);
                     ScriptRuntime.call(context, fun, thrScope, new Object[0], thrScope);
                 } catch (JavaScriptException ex) {
-                    throw locationTracker.getException("Calling function " + funName, ex);
+                    throw locationTracker.getException("Error calling flowscript function
" + funName, ex);
                 } catch (EcmaError ee) {
-                    throw locationTracker.getException("Calling function " + funName, ee);
+                    throw locationTracker.getException("Error calling function " + funName,
ee);
                 } catch (WrappedException ee) {
-                    throw locationTracker.getException("Calling function " + funName, ee);
+                    throw locationTracker.getException("Error calling function " + funName,
ee);
                 }
             } finally {
                 thrScope.setLock(false);
@@ -680,7 +680,7 @@
                     ScriptableObject.callMethod(cocoon,
                                                 "handleContinuation", args);
                 } catch (JavaScriptException ex) {
-                    throw locationTracker.getException("Calling continuation", ex);
+                    throw locationTracker.getException("Error calling continuation", ex);
 //                    EvaluatorException ee = Context.reportRuntimeError(
 //                                                                       ToolErrorReporter.getMessage("msg.uncaughtJSException",
 //                                                                                      
             ex.getMessage()));
@@ -691,7 +691,7 @@
 //                    throw new CascadingRuntimeException(ee.getMessage(),
 //                                                        unwrapped);
                 } catch (EcmaError ee) {
-                    throw locationTracker.getException("Calling continuation", ee);
+                    throw locationTracker.getException("Error calling continuation", ee);
 //                    String msg = ToolErrorReporter.getMessage("msg.uncaughtJSException",
ee.toString());
 //                    if (ee.getSourceName() != null) {
 //                        Context.reportRuntimeError(msg, ee.getSourceName(),



Mime
View raw message