Bug fix
This commit is contained in:
parent
6db93b6dfb
commit
97bbe1a465
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ class Executor
|
|||
|
||||
$status = $response['headers']['status-code'];
|
||||
if ($status >= 400) {
|
||||
$message = \is_string($response['body'] ? $response['body'] : $response['body']['message']);
|
||||
$message = \is_string($response['body']) ? $response['body'] : $response['body']['message'];
|
||||
throw new \Exception($message, $status);
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ class Executor
|
|||
|
||||
$status = $response['headers']['status-code'];
|
||||
if ($status >= 400) {
|
||||
$message = \is_string($response['body'] ? $response['body'] : $response['body']['message']);
|
||||
$message = \is_string($response['body']) ? $response['body'] : $response['body']['message'];
|
||||
throw new \Exception($message, $status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue