We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad8e67f commit 717b9dbCopy full SHA for 717b9db
1 file changed
src/main/java/io/github/intisy/utils/utils/ConnectionUtils.java
@@ -152,8 +152,9 @@ public static JsonObject handleResponse(HttpURLConnection connection) throws IOE
152
throw new IOException("Failed to parse JSON: " + e.getMessage());
153
}
154
if (responseCode != HttpURLConnection.HTTP_OK) {
155
- throw new IOException("Response code: " + responseCode + " response: " + jsonObject.toString());
+ Log.error("Response code: " + responseCode + " response: " + jsonObject.toString());
156
157
+ jsonObject.addProperty("code", responseCode);
158
br.close();
159
return jsonObject;
160
0 commit comments