[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
This commit is contained in:
Brett Porter 2009-03-09 08:00:07 +00:00
parent 268b0e5850
commit 1b1f7785df
1 changed files with 2 additions and 2 deletions

View 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 );
}
}
}