Fixed account tests

This commit is contained in:
Eldad Fux 2024-04-23 00:17:07 +02:00
parent 46ab7b1a36
commit beeb66e66d

View file

@ -704,7 +704,7 @@ Http::error()
}
/** Handle Utopia Errors */
if ($error instanceof Utopia\Http\Exception) {
if ($error instanceof Utopia\Http\Exception || $error instanceof Utopia\Servers\Exception) {
$error = new AppwriteException(AppwriteException::GENERAL_UNKNOWN, $message, $code, $error);
switch ($code) {
case 400: