Skip to content

Commit

Permalink
Add diagnostic information to exception
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Jul 4, 2024
1 parent 7f3cdcc commit d0ddb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/HttpException.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class HttpException extends GHIOException {
* @see HttpURLConnection#getResponseMessage() HttpURLConnection#getResponseMessage()
*/
public HttpException(String message, int responseCode, String responseMessage, String url) {
super(message);
super(message + " Response code: " + responseCode);
this.responseCode = responseCode;
this.responseMessage = responseMessage;
this.url = url;
Expand Down

0 comments on commit d0ddb95

Please sign in to comment.