1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00
This commit is contained in:
Matej Baco 2022-11-23 09:45:06 +01:00
parent 6db93b6dfb
commit 97bbe1a465

View file

@ -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);
}