From e5a63a5078dcd40b20c6879a95dc5d5aae10d218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 30 Aug 2022 09:28:37 +0200 Subject: [PATCH] Update app/controllers/api/functions.php Co-authored-by: Jake Barnby --- app/controllers/api/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index f2616c9116..b4fb3320d9 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1423,7 +1423,7 @@ App::get('/v1/functions/:functionId/variables/:variableId') $function = $dbForProject->getDocument('functions', $functionId); if ($function->isEmpty()) { - throw new Exception(Exception::FUNCTION_NOT_FOUND, 'Function not found'); + throw new Exception(Exception::FUNCTION_NOT_FOUND); } $variable = $dbForProject->findOne('variables', [