mirror of https://github.com/apache/archiva.git
[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:
parent
268b0e5850
commit
1b1f7785df
|
@ -148,11 +148,11 @@ public class NexusIndexerConsumer
|
||||||
}
|
}
|
||||||
catch ( UnsupportedExistingLuceneIndexException e )
|
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 )
|
catch ( IOException e )
|
||||||
{
|
{
|
||||||
log.error( "Could not create index at " + indexDirectory.getAbsoluteFile(), e );
|
throw new ConsumerException( "Could not create index at " + indexDirectory.getAbsoluteFile(), e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue