Skip to content

Commit

Permalink
Stacktrace appears in hints, omit printing to STDERR
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 18, 2025
1 parent d3350b9 commit b9c69dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/php/xp/web/srv/HttpProtocol.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ public function __construct($application, $logging) {
* @return void
*/
private function sendError($request, $response, $error) {
if ($response->flushed()) {
$error->printStackTrace();
} else {
if (!$response->flushed()) {
$loader= ClassLoader::getDefault();
$message= Status::message($error->status());

Expand Down

0 comments on commit b9c69dc

Please sign in to comment.