From beeb66e66d73f50c00f88e9237ae4454c03ca193 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 23 Apr 2024 00:17:07 +0200 Subject: [PATCH] Fixed account tests --- app/controllers/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 2d02696a3b..c0756eca14 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -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: