Skip to content

Commit 64fc64a

Browse files
committed
Resolve review
1 parent b4bcd83 commit 64fc64a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controller/HealthController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
2424
use Symfony\Component\HttpFoundation\JsonResponse;
2525
use Symfony\Component\Routing\Attribute\Route;
26+
use Throwable;
2627

2728
/**
2829
* Display the health state of the application.
@@ -43,7 +44,7 @@ public function __invoke(): JsonResponse
4344
{
4445
try {
4546
$statusResponse = $this->healthChecker->check();
46-
} catch (\Exception $exception) {
47+
} catch (Throwable $exception) {
4748
$statusResponse = HealthReport::buildStatusDown($exception->getMessage());
4849
}
4950
return $this->json($statusResponse, $statusResponse->getStatusCode());

0 commit comments

Comments
 (0)