mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Add exception class
from develop
This commit is contained in:
parent
0a2cd69a4b
commit
0d845b764b
@ -39,8 +39,7 @@ function exception_handler($exception) {
|
|||||||
// we just replace some values manually
|
// we just replace some values manually
|
||||||
// cause in case Twig throws exception, we can show it too
|
// cause in case Twig throws exception, we can show it too
|
||||||
$content = file_get_contents($template_file);
|
$content = file_get_contents($template_file);
|
||||||
$content = str_replace(array('{{ BASE_URL }}', '{{ message }}', '{{ backtrace }}', '{{ powered_by }}'), array(BASE_URL, $message, $backtrace_formatted, base64_decode('UG93ZXJlZCBieSA8YSBocmVmPSJodHRwOi8vbXktYWFjLm9yZyIgdGFyZ2V0PSJfYmxhbmsiPk15QUFDLjwvYT4=')), $content);
|
$content = str_replace(array('{{ BASE_URL }}', '{{ exceptionClass }}', '{{ message }}', '{{ backtrace }}', '{{ powered_by }}'), array(BASE_URL, get_class($exception), $message, $backtrace_formatted, base64_decode('UG93ZXJlZCBieSA8YSBocmVmPSJodHRwOi8vbXktYWFjLm9yZyIgdGFyZ2V0PSJfYmxhbmsiPk15QUFDLjwvYT4=')), $content);
|
||||||
|
|
||||||
echo $content;
|
echo $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@
|
|||||||
<div class="center wide">
|
<div class="center wide">
|
||||||
<h2 class="wide">Whoops something went wrong...</h2>
|
<h2 class="wide">Whoops something went wrong...</h2>
|
||||||
<div class="error wide">
|
<div class="error wide">
|
||||||
|
Exception class: {{ exceptionClass }}()
|
||||||
|
<br/><br/>
|
||||||
{{ message }}
|
{{ message }}
|
||||||
<br/><br/><br/>
|
<br/><br/><br/>
|
||||||
<b>Backtrace:</b><br/><br/>
|
<b>Backtrace:</b><br/><br/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user