added error code

This commit is contained in:
ArnabChatterjee20k committed 2026-03-09 15:53:48 +05:30
1 parent cd91e119ce
commit 864a351b20
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}