Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

renamed errors to error

  • Loading branch information...
commit f9ce77c99cf906c1c22104a85eae315ea2003885 1 parent b246aaf
Mashape authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mashape/methods/call/call.php
View
4 mashape/methods/call/call.php
@@ -123,8 +123,8 @@ private function validateRequest($serverKey, $token, $method, $language, $versio
if (empty($validationResponse)) {
throw new MashapeException(EXCEPTION_JSONDECODE_REQUEST, EXCEPTION_SYSTEM_ERROR_CODE);
}
- if (!empty($validationResponse->errors)) {
- $error = $validationResponse->errors[0];
+ if (!empty($validationResponse->error)) {
+ $error = $validationResponse->error;
throw new MashapeException($error->message, $error->code);
}
$authorization = $validationResponse->authorized;
Please sign in to comment.
Something went wrong with that request. Please try again.