From 8317b306588a0f4fdf9218bdc243ff2938f2d60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 16 Mar 2022 15:29:31 +0100 Subject: [PATCH] Add error middleware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- php/public/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php/public/index.php b/php/public/index.php index 97bc0eb1..c5752a79 100644 --- a/php/public/index.php +++ b/php/public/index.php @@ -141,4 +141,6 @@ $app->get('/', function (\Psr\Http\Message\RequestInterface $request, \Psr\Http\ } }); +$errorMiddleware = $app->addErrorMiddleware(true, true, true); + $app->run();