Author: mickw
Date: 2006-04-25 13:53:58 +0200 (Tue, 25 Apr 2006)
New Revision: 2796

Modified:
   
branches/2.0/src/java/no/schibstedsok/front/searchportal/query/parser/AbstractQueryParser.java
Log:
more helpful exception msg


Modified: 
branches/2.0/src/java/no/schibstedsok/front/searchportal/query/parser/AbstractQueryParser.java
===================================================================
--- 
branches/2.0/src/java/no/schibstedsok/front/searchportal/query/parser/AbstractQueryParser.java
      2006-04-25 11:47:25 UTC (rev 2795)
+++ 
branches/2.0/src/java/no/schibstedsok/front/searchportal/query/parser/AbstractQueryParser.java
      2006-04-25 11:53:58 UTC (rev 2796)
@@ -46,7 +46,7 @@
      ***/
     protected static final String ERR_EMPTY_CONTEXT
         = "The \"QueryParser(QueryParser.Context)\" constructor must be used!";
-    private static final String ERR_PARSING = "Unable to create RunningQuery's 
query due to ParseException";
+    private static final String ERR_PARSING = "Unable to create RunningQuery's 
query due to ParseException of ";
 
     /** the context this query parser implementation must work against.
      ***/
@@ -87,9 +87,9 @@
                 };
                 
             }catch(ParseException pe){
-                LOG.warn(ERR_PARSING, pe);
+                LOG.warn(ERR_PARSING + queryStr, pe);
             } catch (TokenMgrError tme)  {
-                LOG.error(ERR_PARSING, tme);
+                LOG.error(ERR_PARSING + queryStr, tme);
             }
             
             if( query == null ){

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to