cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation JexlTemplate.java
Date Sat, 19 Apr 2003 22:30:05 GMT
coliver     2003/04/19 15:30:05

  Modified:    src/scratchpad/src/org/apache/cocoon/generation
                        JexlTemplate.java
  Log:
  fixed error reporting. Note: the previous revision also added <set>
  
  Revision  Changes    Path
  1.7       +3 -3      cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JexlTemplate.java
  
  Index: JexlTemplate.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JexlTemplate.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JexlTemplate.java	19 Apr 2003 21:59:09 -0000	1.6
  +++ JexlTemplate.java	19 Apr 2003 22:30:05 -0000	1.7
  @@ -588,15 +588,15 @@
        * (contained in #{}) 
        */
   
  -    private Object compileExpr(String expr, String errorMessage, 
  +    private Object compileExpr(String expr, String errorPrefix, 
                                  Locator location) throws SAXParseException {
           try {
               return compileExpr(expr);
           } catch (Exception exc) {
  -            throw new SAXParseException(exc.getMessage(),
  +            throw new SAXParseException(errorPrefix + exc.getMessage(),
                                           location, exc);
           } catch (Error err) {
  -            throw new SAXParseException(err.getMessage(),
  +            throw new SAXParseException(errorPrefix + err.getMessage(),
                                           location, null);
           }
       }
  
  
  

Mime
View raw message