File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -201,24 +201,26 @@ public function exceptionHandler(\Throwable $exception)
201201 $ output .= '<!DOCTYPE html><html><head><title>500: Errore interno</title></head><body> ' ;
202202 }
203203 $ output .= '<h1>500: Errore interno</h1> ' ;
204+ $ output .= PHP_EOL ;
204205 if ((bool ) ini_get ('display_errors ' ) === true ) {
205206 $ currentEx = $ exception ;
206207 do {
207208 $ output .= sprintf (
208- '<div style="background-color: #fcc ; border: 1px solid #600; color: #600; margin: 1em 0; padding: .33em 6px">
209- <b>Message:</b> %s<br />
210- <br />
211- <b>Class:</b> %s<br />
212- <b>Code:</b> %s<br />
213- <b>File:</b> %s:%s<br />
214- <b>Stack trace:</b><pre>%s</pre>
215- </div> ' ,
209+ '<div style="background-color: #FCC ; border: 1px solid #600; color: #600; margin: 1em 0; padding: .33em 6px 0"> '
210+ . ' <b>Message:</b> %s<br /> '
211+ . ' <br /> '
212+ . ' <b>Class:</b> %s<br /> '
213+ . ' <b>Code:</b> %s<br /> '
214+ . ' <b>File:</b> %s:%s<br /> '
215+ . ' <b>Stack trace:</b><pre>%s</pre> '
216+ . ' </div>%s ' ,
216217 htmlspecialchars ($ currentEx ->getMessage ()),
217218 get_class ($ currentEx ),
218219 $ this ->getExceptionCode ($ currentEx ),
219220 $ currentEx ->getFile (),
220221 $ currentEx ->getLine (),
221- htmlspecialchars ($ this ->purgeTrace ($ currentEx ->getTraceAsString ()))
222+ htmlspecialchars ($ this ->purgeTrace ($ currentEx ->getTraceAsString ())),
223+ PHP_EOL
222224 );
223225 } while ($ currentEx = $ currentEx ->getPrevious ());
224226 }
You can’t perform that action at this time.
0 commit comments