jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r640744 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/xpath/XPathQueryBuilder.java
Date Tue, 25 Mar 2008 08:45:07 GMT
Author: mreutegg
Date: Tue Mar 25 01:45:06 2008
New Revision: 640744

URL: http://svn.apache.org/viewvc?rev=640744&view=rev
Log:
JCR-1494: [PATCH] XPathQueryBuilder reports misleading column numbers for faulty queries

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/xpath/XPathQueryBuilder.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/xpath/XPathQueryBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/xpath/XPathQueryBuilder.java?rev=640744&r1=640743&r2=640744&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/xpath/XPathQueryBuilder.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/xpath/XPathQueryBuilder.java
Tue Mar 25 01:45:06 2008
@@ -296,10 +296,10 @@
             }
             query.jjtAccept(this, root);
         } catch (ParseException e) {
-            throw new InvalidQueryException(e.getMessage(), e);
+            throw new InvalidQueryException(e.getMessage() + " for statement: " + statement,
e);
         } catch (Throwable t) {
             // also catch any other exception
-            throw new InvalidQueryException(t.getMessage(), t);
+            throw new InvalidQueryException(t.getMessage() + " for statement: " + statement,
t);
         }
         if (exceptions.size() > 0) {
             // simply report the first one



Mime
View raw message