mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Bug fix
This commit is contained in:
1 parent
6db93b6dfb
commit
97bbe1a465
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user