Skip to content

Commit

Permalink
fix(ExceptionSubscriber) Update error message for internal server err…
Browse files Browse the repository at this point in the history
…or response
  • Loading branch information
MrAnyx committed Jan 2, 2025
1 parent 95f1301 commit 7ab0188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventSubscriber/ExceptionSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function onKernelException(ExceptionEvent $event): void
$response = new JsonResponse(
[
'message' => Response::$statusTexts[$statusCode],
'details' => $statusCode === Response::HTTP_INTERNAL_SERVER_ERROR ? 'Internal server error' : $exception->getMessage(),
'details' => $statusCode === Response::HTTP_INTERNAL_SERVER_ERROR ? 'An error occured' : $exception->getMessage(),
],
$statusCode
);
Expand Down

0 comments on commit 7ab0188

Please sign in to comment.