diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java index 7d29fe73079..f36c98e8fcb 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java @@ -422,7 +422,7 @@ public class HttpSolrServer extends SolrServer { try { msg = msg + " " + IOUtils.toString(respBody, encoding); } catch (IOException e) { - new RemoteSolrException(httpStatus, "Could not parse response with encoding " + encoding, e); + throw new RemoteSolrException(httpStatus, "Could not parse response with encoding " + encoding, e); } RemoteSolrException e = new RemoteSolrException(httpStatus, msg, null); throw e;