diff --git a/lib/ApiRequestor.php b/lib/ApiRequestor.php index 022d9c599..290274be2 100644 --- a/lib/ApiRequestor.php +++ b/lib/ApiRequestor.php @@ -422,7 +422,7 @@ private function _interpretResponse($rbody, $rcode, $rheaders) if ($resp === null && $jsonError !== JSON_ERROR_NONE) { $msg = "Invalid response body from API: $rbody " . "(HTTP response code was $rcode, json_last_error() was $jsonError)"; - throw new Exception\UnexpectedValueException($msg, $rcode, $rbody); + throw new Exception\UnexpectedValueException($msg, $rcode); } if ($rcode < 200 || $rcode >= 300) {