jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r549117 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Date Wed, 20 Jun 2007 14:23:26 GMT
Author: mreutegg
Date: Wed Jun 20 07:23:25 2007
New Revision: 549117

URL: http://svn.apache.org/viewvc?view=rev&rev=549117
Log:
JCR-976: Misleading exception message when re-index fails

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java?view=diff&rev=549117&r1=549116&r2=549117
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Wed Jun 20 07:23:25 2007
@@ -319,10 +319,11 @@
                 executeAndLog(new Commit(getTransactionId()));
                 reindexing = false;
             }
-        } catch (ItemStateException e) {
-            throw new IOException("Error indexing root node: " + e.getMessage());
-        } catch (RepositoryException e) {
-            throw new IOException("Error indexing root node: " + e.getMessage());
+        } catch (Exception e) {
+            String msg = "Error reindexing workspace";
+            IOException ex = new IOException(msg);
+            ex.initCause(e);
+            throw ex;
         }
 
         lastFlushTime = System.currentTimeMillis();



Mime
View raw message