Author: mriou
Date: Tue Aug 29 08:21:07 2006
New Revision: 438099

URL: http://svn.apache.org/viewvc?rev=438099&view=rev
Log:
Better warning reporting.

Modified:
    
incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java

Modified: 
incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java?rev=438099&r1=438098&r2=438099&view=diff
==============================================================================
--- 
incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java
 (original)
+++ 
incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java
 Tue Aug 29 08:21:07 2006
@@ -138,8 +138,7 @@
             // return guessed appropriate values from variable types.
             expr.evaluate(DOMUtils.newDocument());
         } catch (XPathExpressionException e) {
-            e.printStackTrace();
-            throw new CompilationException(__msgs.warnXPath20Syntax(xpathStr, 
e.toString()), e);
+            throw new CompilationException(__msgs.warnXPath20Syntax(xpathStr, 
e.getCause().toString()), e.getCause());
         } catch (WrappedResolverException wre) {
             if (wre._compilationMsg != null) throw new 
CompilationException(wre._compilationMsg, wre);
             if (wre.getCause() instanceof CompilationException) throw 
(CompilationException)wre.getCause();


Reply via email to