1
0

Fix: The error output left a pre-tag open

This commit is contained in:
onli
2021-06-30 21:46:39 +02:00
parent 18a6904d5d
commit 34f52d1aae

View File

@ -205,8 +205,6 @@ if (!function_exists('errorToExceptionHandler')) {
if ($serendipity['production'] !== true) {
// Display error (production: FALSE and production: 'debug')
echo '<p><b>' . $type . ':</b> '.$errStr . ' in ' . $errFile . ' on line ' . $errLine . '.' . $debug_note . '</p>';
echo '<pre style="white-space: pre-line;">';
if ($serendipity['production'] === 'debug') {
// In debug mode, throwing an exception here will stop the code execution. Sometimes useful to catch all errors.