Permalink
Browse files

When creating an index, fail properly on classpath error

  • Loading branch information...
1 parent 4ea5b7d commit cc65d39f06d2e39e19281c8a2962767626fc10da @nlalevee nlalevee committed with kimchy Apr 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/org/elasticsearch/indices/InternalIndicesService.java
@@ -284,6 +284,8 @@ public synchronized IndexService createIndex(String sIndexName, Settings setting
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));
}

0 comments on commit cc65d39

Please sign in to comment.