From 3a53c863f95a35041128992384f7d42f241b2584 Mon Sep 17 00:00:00 2001 From: ipranjal Date: Mon, 14 Oct 2024 14:16:44 +0530 Subject: [PATCH] fix: wrong checking of debug mode --- src/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions.php b/src/functions.php index 66de858..e2f1585 100644 --- a/src/functions.php +++ b/src/functions.php @@ -24,9 +24,9 @@ $whoops->pushHandler($pretty); } if (App::engine()->config()->get('debug', false)) { - $output = App::engine()->call(App::engine()->getHandler('500')); - } else { $output = $whoops->handleException($e); + } else { + $output = App::engine()->call(App::engine()->getHandler('500')); } App::engine()->response()->setStatusCode(500); App::engine()->response()->setContent($output);