dviner      2003/08/04 15:31:55

  Modified:    java/src/org/apache/xindice/tools/command
                        ListCollections.java
  Log:
  This small change outputs a debugging message (using the standard Log 
utility) when the command line utility can't fetch a collection from the 
database.  The message just lets the user know what collection was unable to be 
fetched.
  
  Revision  Changes    Path
  1.8       +4 -1      
xml-xindice/java/src/org/apache/xindice/tools/command/ListCollections.java
  
  Index: ListCollections.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xindice/java/src/org/apache/xindice/tools/command/ListCollections.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ListCollections.java      1 Aug 2003 19:40:20 -0000       1.7
  +++ ListCollections.java      4 Aug 2003 22:31:55 -0000       1.8
  @@ -91,9 +91,12 @@
                                                  (String) 
table.get(XMLTools.LOCAL));
   
   
  +                     
               // Get a Collection reference
               col = DatabaseManager.getCollection(colstring);
               if (col == null) {
  +                // log a debug message
  +                log.debug("Error fetching collection '" + colstring + "'");
                   System.out.println("ERROR : Collection not found!");
                   return false;
               } else {
  
  
  

Reply via email to