Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
This commit is contained in:
parent
8ec8843a09
commit
e5a63a5078
1 changed files with 1 additions and 1 deletions
|
@ -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', [
|
||||
|
|
Loading…
Reference in a new issue