Skip to content

Commit 8fa88ac

Browse files
committed
Add the url to the message of the IOException when an HTTP error occurs
1 parent b54c16b commit 8fa88ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsign-core/src/main/java/net/jsign/jca/RESTClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class RESTClient {
7373
if (contentType != null && contentType.startsWith("application/json")) {
7474
throw new IOException(getErrorMessage(JsonReader.jsonToMaps(error)));
7575
} else {
76-
throw new IOException("HTTP Error " + responseCode + (conn.getResponseMessage() != null ? " - " + conn.getResponseMessage() : ""));
76+
throw new IOException("HTTP Error " + responseCode + (conn.getResponseMessage() != null ? " - " + conn.getResponseMessage() : "") + " (" + url + ")");
7777
}
7878
}
7979
}

0 commit comments

Comments
 (0)