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();