From 982373c915c32c9294d86cb9499d5e1bbde456d5 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 10 Jul 2023 08:04:27 +0000 Subject: [PATCH] feat: update error in Exception constructor --- app/controllers/api/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index dce493b024..651efbfbeb 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -414,7 +414,7 @@ App::get('/v1/users/:userId') $user = $dbForProject->getDocument('users', $userId); if ($user->isEmpty()) { - throw new Exception('User not found', 404, Exception::USER_NOT_FOUND); + throw new Exception(Exception::USER_NOT_FOUND); } $response->dynamic($user, Response::MODEL_USER);