Skip to content

Commit

Permalink
chore: removed error code part
Browse files Browse the repository at this point in the history
  • Loading branch information
reeshika-h committed Oct 8, 2024
1 parent 33ea4e6 commit fd6670a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/com/contentstack/sdk/CSHttpConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ void setError(String errResp) {
// If errResp is not valid JSON, create a new JSONObject with the error message
responseJSON = new JSONObject();
responseJSON.put(ERROR_MESSAGE, errResp);
responseJSON.put(ERROR_CODE, "unknown");
}
responseJSON.put(ERROR_MESSAGE, responseJSON.optString(ERROR_MESSAGE));
responseJSON.put(ERROR_CODE, responseJSON.optString(ERROR_CODE));
Expand Down

0 comments on commit fd6670a

Please sign in to comment.