diff --git a/src/main/java/com/uber/jenkins/phabricator/conduit/DifferentialClient.java b/src/main/java/com/uber/jenkins/phabricator/conduit/DifferentialClient.java index 3afab4e8..10d7ddfe 100644 --- a/src/main/java/com/uber/jenkins/phabricator/conduit/DifferentialClient.java +++ b/src/main/java/com/uber/jenkins/phabricator/conduit/DifferentialClient.java @@ -73,10 +73,14 @@ public JSONObject fetchDiff() throws IOException, ConduitAPIException { try { response = query.getJSONObject("result"); } catch (JSONException e) { - throw new ConduitAPIException( - String.format("No 'result' object found in conduit call: (%s) %s", - e.getMessage(), - query.toString(2))); + try { + response = query.getJSONObject("response"); + } catch (JSONException e) { + throw new ConduitAPIException( + String.format("No 'result' or 'response' object found in conduit call: (%s) %s", + e.getMessage(), + query.toString(2))); + } } try { return response.getJSONObject(diffID);