]> source.dussan.org Git - archiva.git/commitdiff
[MRM-749] throw consumer exception if it can't start so that it doesn't fail processi...
authorBrett Porter <brett@apache.org>
Mon, 9 Mar 2009 08:00:07 +0000 (08:00 +0000)
committerBrett Porter <brett@apache.org>
Mon, 9 Mar 2009 08:00:07 +0000 (08:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751608 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java

index 2c40d039013eecb41fa56573c730980a0f713199..0f948d1e474650e85214ac0868ca90a8d52a3e52 100644 (file)
@@ -148,11 +148,11 @@ public class NexusIndexerConsumer
             }
             catch ( UnsupportedExistingLuceneIndexException e )
             {
-                log.error( "Could not create index at " + indexDirectory.getAbsoluteFile(), e );
+                throw new ConsumerException( "Could not create index at " + indexDirectory.getAbsoluteFile(), e );
             }
             catch ( IOException e )
             {
-                log.error( "Could not create index at " + indexDirectory.getAbsoluteFile(), e );
+                throw new ConsumerException( "Could not create index at " + indexDirectory.getAbsoluteFile(), e );
             }
         }
     }