When creating an index, fail properly on classpath error
This commit is contained in:
parent
4ea5b7d51f
commit
cc65d39f06
|
@ -284,6 +284,8 @@ public class InternalIndicesService extends AbstractLifecycleComponent<IndicesSe
|
|||
Injector indexInjector;
|
||||
try {
|
||||
indexInjector = modules.createChildInjector(injector);
|
||||
} catch (NoClassDefFoundError e) {
|
||||
throw new IndexCreationException(index, e);
|
||||
} catch (CreationException e) {
|
||||
throw new IndexCreationException(index, Injectors.getFirstErrorFailure(e));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue