mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
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…
x
Reference in New Issue
Block a user