Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Explicitly checks for debug mode on error.
  • Loading branch information
a.stecher committed Sep 4, 2025
commit 4ba0793032120fb5eb6d418e1e5132cbe38ee9b7
4 changes: 3 additions & 1 deletion bin/frankenphp-worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@
report($e);
}

$hasDebugModeEnabled = app()->has('config') && app()->hasDebugModeEnabled();

$response = new Response(
'Internal Server Error',
$hasDebugModeEnabled ? (string)$e : 'Internal Server Error',
500,
[
'Status' => '500 Internal Server Error',
Expand Down