We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4bcd83 commit 64fc64aCopy full SHA for 64fc64a
src/Controller/HealthController.php
@@ -23,6 +23,7 @@
23
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
24
use Symfony\Component\HttpFoundation\JsonResponse;
25
use Symfony\Component\Routing\Attribute\Route;
26
+use Throwable;
27
28
/**
29
* Display the health state of the application.
@@ -43,7 +44,7 @@ public function __invoke(): JsonResponse
43
44
{
45
try {
46
$statusResponse = $this->healthChecker->check();
- } catch (\Exception $exception) {
47
+ } catch (Throwable $exception) {
48
$statusResponse = HealthReport::buildStatusDown($exception->getMessage());
49
}
50
return $this->json($statusResponse, $statusResponse->getStatusCode());
0 commit comments