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', [