Fix format

This commit is contained in:
Matej Bačo 2023-05-24 18:32:03 +02:00
parent 1762c4f491
commit b81e9ffd47

View file

@ -41,7 +41,7 @@ Server::setResource('execute', function () {
string $executionId = null, string $executionId = null,
) { ) {
$error = null; // Used to re-throw at the end to trigger Logger (Sentry) $error = null; // Used to re-throw at the end to trigger Logger (Sentry)
$user ??= new Document(); $user ??= new Document();
$functionId = $function->getId(); $functionId = $function->getId();
$deploymentId = $function->getAttribute('deployment', ''); $deploymentId = $function->getAttribute('deployment', '');
@ -222,7 +222,7 @@ Server::setResource('execute', function () {
->submit(); ->submit();
} }
if(!empty($error)) { if (!empty($error)) {
$projectId = $project->getId(); $projectId = $project->getId();
throw new Exception("Error in project #{$projectId}, function #{$functionId}: " . $error); throw new Exception("Error in project #{$projectId}, function #{$functionId}: " . $error);
} }