show the base url when reporting exceptions

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236324 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-01-26 17:52:50 +00:00
parent 86dd14bab9
commit 3281e5b3a3
1 changed files with 2 additions and 2 deletions

View File

@ -475,10 +475,10 @@ public class CommonsHttpSolrServer extends SolrServer
return processor.processResponse(respBody, charset); return processor.processResponse(respBody, charset);
} }
catch (HttpException e) { catch (HttpException e) {
throw new SolrServerException( e ); throw new SolrServerException(getBaseURL(), e);
} }
catch (IOException e) { catch (IOException e) {
throw new SolrServerException( e ); throw new SolrServerException(getBaseURL(), e);
} }
finally { finally {
method.releaseConnection(); method.releaseConnection();