panchenko commented on a change in pull request #126: replace empty 
HttpResponseException.message with statusCode
URL: 
https://github.com/apache/httpcomponents-client/pull/126#discussion_r242946793
 
 

 ##########
 File path: 
httpclient/src/main/java/org/apache/http/client/HttpResponseException.java
 ##########
 @@ -38,7 +38,7 @@
     private final int statusCode;
 
     public HttpResponseException(final int statusCode, final String s) {
-        super(s);
+        super(s == null || s.isEmpty() ? Integer.toString(statusCode) : s);
 
 Review comment:
   @ok2c Please take a look

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to