mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
added error code
This commit is contained in:
1 parent
cd91e119ce
commit
864a351b20
1 file changed
+1
-1
@@ -207,7 +207,7 @@ class Appwrite extends Source
|
||||
)['version'];
|
||||
} catch (\Throwable $e) {
|
||||
if ($e->getCode() === 403) {
|
||||
throw new \Exception("Missing required scopes.");
|
||||
throw new \Exception('Missing required scopes.', $e->getCode(), $e);
|
||||
} else {
|
||||
throw new \Exception($e->getMessage(), $e->getCode(), $e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user