From 1b1f7785dfcdb779f1fb64c88275be0876cde759 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Mon, 9 Mar 2009 08:00:07 +0000 Subject: [PATCH] [MRM-749] throw consumer exception if it can't start so that it doesn't fail processing every file git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751608 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/consumers/lucene/NexusIndexerConsumer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java index 2c40d0390..0f948d1e4 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java @@ -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 ); } } } -- 2.39.5