avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/configuration ConfigurationBuilder.java
Date Tue, 08 Apr 2003 18:37:24 GMT
proyal      2003/04/08 11:37:24

  Modified:    src/java/org/apache/avalon/phoenix/tools/configuration
                        ConfigurationBuilder.java
  Log:
  Write line # that problem was on
  
  Revision  Changes    Path
  1.19      +4 -2      avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/configuration/ConfigurationBuilder.java
  
  Index: ConfigurationBuilder.java
  ===================================================================
  RCS file: /home/cvs/avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/configuration/ConfigurationBuilder.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ConfigurationBuilder.java	6 Apr 2003 11:23:22 -0000	1.18
  +++ ConfigurationBuilder.java	8 Apr 2003 18:37:24 -0000	1.19
  @@ -68,6 +68,7 @@
   import org.xml.sax.SAXException;
   import org.xml.sax.XMLReader;
   import org.xml.sax.ContentHandler;
  +import org.xml.sax.SAXParseException;
   
   /**
    * Utility class used to load Configuration trees from XML files.
  @@ -144,7 +145,8 @@
               for( int i = 0; i < issues.length; i++ )
               {
                   final ValidationIssue issue = issues[ i ];
  -                final String message = issue.getException().getMessage();
  +                final SAXParseException exception = issue.getException();
  +                final String message = exception.getMessage() + " at " + exception.getLineNumber();
                   if( issue.isWarning() )
                   {
                       logger.info( message );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message