mirror of https://github.com/apache/lucene.git
SOLR-1503: use 400 instead of 500 for bad XML
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@823842 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
57d6174c94
commit
53e701cd0f
|
@ -69,8 +69,7 @@ class XMLLoader extends ContentStreamLoader {
|
|||
this.processUpdate(processor, parser);
|
||||
}
|
||||
catch (XMLStreamException e) {
|
||||
//Hmmm, not quite right
|
||||
throw (IOException) new IOException(e.getMessage()).initCause(e);
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e.getMessage(), e);
|
||||
} finally {
|
||||
IOUtils.closeQuietly(reader);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue