Skip to content

Commit

Permalink
Fix bug in ErrorLogger message generation.
Browse files Browse the repository at this point in the history
Closes #14082
  • Loading branch information
ADmad committed Dec 29, 2019
1 parent a8b7171 commit 003e89f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Error/ErrorLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ protected function getMessage(Throwable $exception, bool $isPrevious = false): s
$trace = Debugger::formatTrace($exception, ['format' => 'points']);
$message .= "\nStack Trace:\n";
foreach ($trace as $line) {
$message .= "- {$line['file']}:{$line['line']}\n";
if (is_string($line)) {
$message .= '- ' . $line;
} else {
$message .= "- {$line['file']}:{$line['line']}\n";
}
}
}

Expand Down

0 comments on commit 003e89f

Please sign in to comment.