mirror of https://github.com/apache/lucene.git
SOLR-545 -- sending error code rather then throwing an exception in jsp
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@684623 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2e863f2110
commit
475fb4aec3
|
@ -29,7 +29,8 @@
|
||||||
//
|
//
|
||||||
SolrCore core = (SolrCore) request.getAttribute("org.apache.solr.SolrCore");
|
SolrCore core = (SolrCore) request.getAttribute("org.apache.solr.SolrCore");
|
||||||
if (core == null) {
|
if (core == null) {
|
||||||
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "missing core name" );
|
response.sendError( 404, "missing core name in path" );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SolrConfig solrConfig = core.getSolrConfig();
|
SolrConfig solrConfig = core.getSolrConfig();
|
||||||
|
|
Loading…
Reference in New Issue