diff --git a/app/controllers/general.php b/app/controllers/general.php index 416e6b1e86..0b64f30631 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -1171,6 +1171,9 @@ App::error() break; } break; + case 'Utopia\Database\Exception\Authorization': + $error = new AppwriteException(AppwriteException::USER_UNAUTHORIZED); + break; case 'Utopia\Database\Exception\Timeout': $error = new AppwriteException(AppwriteException::DATABASE_TIMEOUT, previous: $error); break;