lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r823842 - /lucene/solr/trunk/src/java/org/apache/solr/handler/XMLLoader.java
Date Sat, 10 Oct 2009 11:13:59 GMT
Author: yonik
Date: Sat Oct 10 11:13:58 2009
New Revision: 823842

URL: http://svn.apache.org/viewvc?rev=823842&view=rev
Log:
SOLR-1503: use 400 instead of 500 for bad XML

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/handler/XMLLoader.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/XMLLoader.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/XMLLoader.java?rev=823842&r1=823841&r2=823842&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/XMLLoader.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/XMLLoader.java Sat Oct 10 11:13:58
2009
@@ -69,8 +69,7 @@
       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);
     }



Mime
View raw message