Skip to content

Commit

Permalink
Merge pull request #879 from mnlg/replace-newline
Browse files Browse the repository at this point in the history
replace newline instead of '\n'
  • Loading branch information
silentworks committed Dec 9, 2014
2 parents 5bb4be9 + b5ef7c2 commit fe1c215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Middleware/PrettyExceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function renderBody(&$env, $exception)
$message = $exception->getMessage();
$file = $exception->getFile();
$line = $exception->getLine();
$trace = str_replace(array('#', '\n'), array('<div>#', '</div>'), $exception->getTraceAsString());
$trace = str_replace(array('#', "\n"), array('<div>#', '</div>'), $exception->getTraceAsString());
$html = sprintf('<h1>%s</h1>', $title);
$html .= '<p>The application could not run because of the following error:</p>';
$html .= '<h2>Details</h2>';
Expand Down

0 comments on commit fe1c215

Please sign in to comment.