diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index d1724f2967..e41b8e1172 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1472,7 +1472,7 @@ App::put('/v1/functions/:functionId/variables/:variableId') ]); if ($variable === false || $variable->isEmpty()) { - throw new Exception(Exception::VARIABLE_NOT_FOUND, 'Variable not found'); + throw new Exception(Exception::VARIABLE_NOT_FOUND); } $variable