Skip to content

Commit

Permalink
fix: wrong checking of debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal committed Oct 14, 2024
1 parent 3d6672c commit 3a53c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a53c86

Please sign in to comment.