SOLR-6232: fix logging of core init failures

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1612896 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2014-07-23 17:50:10 +00:00
parent 2d1056e06f
commit d9660bcd42
2 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,8 @@ public abstract class ConfigSetService {
}
catch (Exception e) {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
"Could not load core configuration for core " + dcore.getName(), e);
"Could not load conf for core " + dcore.getName() +
": " + e.getMessage(), e);
}
}

View File

@ -499,6 +499,7 @@ public class CoreContainer {
}
catch (Exception e) {
coreInitFailures.put(dcore.getName(), new CoreLoadFailure(dcore, e));
log.error("Error creating core [{}]: {}", dcore.getName(), e.getMessage(), e);
throw new SolrException(ErrorCode.SERVER_ERROR, "Unable to create core [" + dcore.getName() + "]", e);
}