incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r760899 - /incubator/sling/trunk/contrib/scripting/xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java
Date Wed, 01 Apr 2009 14:17:11 GMT
Author: bdelacretaz
Date: Wed Apr  1 14:17:09 2009
New Revision: 760899

URL: http://svn.apache.org/viewvc?rev=760899&view=rev
Log:
SLING-908 - throw ScriptException with cause for improved error reporting

Modified:
    incubator/sling/trunk/contrib/scripting/xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java

Modified: incubator/sling/trunk/contrib/scripting/xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/contrib/scripting/xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java?rev=760899&r1=760898&r2=760899&view=diff
==============================================================================
--- incubator/sling/trunk/contrib/scripting/xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java
(original)
+++ incubator/sling/trunk/contrib/scripting/xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java
Wed Apr  1 14:17:09 2009
@@ -64,8 +64,9 @@
 			xpl.eval();
 		} catch (Throwable t) {
 			log.error("Failure running XProc script.", t);
-            throw new ScriptException("Failure running XProc script "
-                + scriptName);
+      final ScriptException se = new ScriptException("Failure running XProc script " + scriptName);
+      se.initCause(t);
+      throw se;
 		}
 		
 		return null;



Mime
View raw message