You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2006/04/14 23:55:06 UTC

svn commit: r394206 - /lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/IndexManagerImpl.java

Author: michi
Date: Fri Apr 14 14:55:01 2006
New Revision: 394206

URL: http://svn.apache.org/viewcvs?rev=394206&view=rev
Log:
error message improved

Modified:
    lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/IndexManagerImpl.java

Modified: lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/IndexManagerImpl.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/IndexManagerImpl.java?rev=394206&r1=394205&r2=394206&view=diff
==============================================================================
--- lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/IndexManagerImpl.java (original)
+++ lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/IndexManagerImpl.java Fri Apr 14 14:55:01 2006
@@ -176,7 +176,7 @@
 
         Index index = (Index) this.indexes.get(id);
         if (index == null) {
-            throw new IndexException("index " + id + " doesn't exist");
+            throw new IndexException("Index " + id + " doesn't exist. Check if configuration " + INDEX_CONF_FILE + " exists for this publication!");
         }
 
         return index;
@@ -221,7 +221,7 @@
             Publication[] publications = pubManager.getPublications();
             resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
             
-            for (int i=0; i<publications.length; i++) {
+            for (int i = 0; i < publications.length; i++) {
                 String uri = "context://" + Publication.PUBLICATION_PREFIX_URI+"/"+publications[i].getId()+
                     "/"+Publication.CONFIGURATION_PATH + "/" + INDEX_CONF_FILE;
                 confSource = resolver.resolveURI(uri);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org