From 3e2a7e2941e40005025d97ef55ec2c21361aea02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 30 Aug 2022 09:27:54 +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 88ad275219..764de936d7 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1319,7 +1319,7 @@ App::post('/v1/functions/:functionId/variables') $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); } $variableId = ID::unique();