From 6cf3cdcadb4d5de317e0e69744956deef9195604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 30 Aug 2022 09:28:20 +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 a293fe5f70..6a3852d415 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1510,7 +1510,7 @@ App::delete('/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', [