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:
Yonik Seeley 2009-10-10 11:13:58 +00:00
parent 57d6174c94
commit 53e701cd0f
1 changed files with 1 additions and 2 deletions

View File

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