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:
Ryan McKinley 2008-08-11 02:14:43 +00:00
parent 2e863f2110
commit 475fb4aec3
1 changed files with 2 additions and 1 deletions

View File

@ -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();