Skip to content

Commit

Permalink
refactor: replace newlines with html line breaks in init error stack …
Browse files Browse the repository at this point in the history
…trace
  • Loading branch information
EdieLemoine committed Oct 23, 2023
1 parent b396e48 commit 8ff2386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myparcelnl.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private function withErrorHandling(
'<hr>%s: %s<br><br><b>Stack trace:</b><br><code>%s</code>',
$message ?? 'Error',
$e->getMessage(),
$e->getTraceAsString()
str_replace("\n", '<br>', $e->getTraceAsString())
);

if ($failureCallback) {
Expand Down

0 comments on commit 8ff2386

Please sign in to comment.