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
Prev Previous commit
Next Next commit
Explicitly checks for debug mode on worker start error.
  • Loading branch information
a.stecher committed Sep 4, 2025
commit 47a1cdcb9e2c2e02b8e226bfc1f95e13c113d116
4 changes: 2 additions & 2 deletions bin/frankenphp-worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
report($e);
}

$hasDebugModeEnabled = app()->has('config') && app()->hasDebugModeEnabled();
$debugMode = $_ENV['APP_DEBUG'] ?? $_SERVER['APP_DEBUG'] ?? 'false';

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