From 677121edca2249a7ec0684e838b5e73aa6463f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 30 Aug 2022 09:29:30 +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 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