diff --git a/duo-client/src/main/java/com/duosecurity/client/Http.java b/duo-client/src/main/java/com/duosecurity/client/Http.java index 23a7d7f..23ed4b0 100644 --- a/duo-client/src/main/java/com/duosecurity/client/Http.java +++ b/duo-client/src/main/java/com/duosecurity/client/Http.java @@ -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")); }