Skip to content

Apache Lucene open-source search software

show the base url when reporting exceptions

Mark Robert Miller3281e5b3a3df
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CommonsHttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CommonsHttpSolrServer.java
index f8c368822e3..04510bd46d7 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CommonsHttpSolrServer.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CommonsHttpSolrServer.java
@@ -475,10 +475,10 @@ public class CommonsHttpSolrServer extends SolrServer
return processor.processResponse(respBody, charset);
}
catch (HttpException e) {
- throw new SolrServerException( e );
+ throw new SolrServerException(getBaseURL(), e);
}
catch (IOException e) {
- throw new SolrServerException( e );
+ throw new SolrServerException(getBaseURL(), e);
}
finally {
method.releaseConnection();