Skip to content

Commit

Permalink
[SSP-2034] improve error handling for friendly URL pages based on API…
Browse files Browse the repository at this point in the history
… status codes (#2973)
  • Loading branch information
sebaholesz authored Jan 9, 2024
2 parents 6fefc1b + a2b6b96 commit e483fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Error/ErrorCodeSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function onErrorFormatting(ErrorFormattingEvent $event): void
}

if ($userCode === null && $code === null) {
return;
$code = 500;
}

$formattedError = $event->getFormattedError();
Expand Down

0 comments on commit e483fec

Please sign in to comment.