Skip to content

Commit

Permalink
Add real stacktrace information of deeper exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Jul 31, 2024
1 parent 6678b40 commit 9e94add
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
@@ -44,6 +44,10 @@ private function writeError(\Throwable $exception, ?\SplFileInfo $file = null):
}
$message .= "\n";

if (!$previousException) {
$message .= "Stack trace:\n {$exception->getTraceAsString()} \n";
}

fwrite(STDERR, $message);
}
}

0 comments on commit 9e94add

Please sign in to comment.