mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
Add line & file to exception handler
This commit is contained in:
parent
933d4e1d6f
commit
c261c6ba48
@ -23,6 +23,8 @@ function exception_handler($exception) {
|
|||||||
|
|
||||||
$backtrace_formatted = nl2br($exception->getTraceAsString());
|
$backtrace_formatted = nl2br($exception->getTraceAsString());
|
||||||
|
|
||||||
|
$message = $message . "<br/><br/>File: {$exception->getFile()}<br/>Line: {$exception->getLine()}";
|
||||||
|
|
||||||
// display basic error message without template
|
// display basic error message without template
|
||||||
// template is missing, why? probably someone deleted templates dir, or it wasn't downloaded right
|
// template is missing, why? probably someone deleted templates dir, or it wasn't downloaded right
|
||||||
$template_file = SYSTEM . 'templates/exception.html.twig';
|
$template_file = SYSTEM . 'templates/exception.html.twig';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user