better failure message

This commit is contained in:
kimchy 2011-03-01 05:34:21 +02:00
parent e639ffbc93
commit 0183516221
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ public class InternalIndicesService extends AbstractLifecycleComponent<IndicesSe
public synchronized IndexService createIndex(String sIndexName, Settings settings, String localNodeId) throws ElasticSearchException { public synchronized IndexService createIndex(String sIndexName, Settings settings, String localNodeId) throws ElasticSearchException {
if (!lifecycle.started()) { if (!lifecycle.started()) {
throw new ElasticSearchIllegalStateException("Can't create an index [" + sIndexName + "] is closed"); throw new ElasticSearchIllegalStateException("Can't create an index [" + sIndexName + "], node is closed");
} }
Index index = new Index(sIndexName); Index index = new Index(sIndexName);
if (indicesInjectors.containsKey(index.name())) { if (indicesInjectors.containsKey(index.name())) {