Skip to content

Commit

Permalink
Handle the case where the code object in the response is not an integ…
Browse files Browse the repository at this point in the history
…er (#87)
  • Loading branch information
AaronAtDuo authored Jul 31, 2024
1 parent 88a6afd commit f0073ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duo-client/src/main/java/com/duosecurity/client/Http.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public Object executeJSONRequest() throws Exception {
JSONObject result = new JSONObject(executeRequestRaw());
if (!result.getString("stat").equals("OK")) {
throw new Exception("Duo error code ("
+ result.getInt("code")
+ result.get("code").toString()
+ "): "
+ result.getString("message"));
}
Expand Down

0 comments on commit f0073ac

Please sign in to comment.