fix error detail view.
This commit is contained in:
parent
32684fa12e
commit
a5aaf33fe5
|
@ -32,9 +32,15 @@
|
||||||
|
|
||||||
call_user_func($config['handler'], $exception, $config);
|
call_user_func($config['handler'], $exception, $config);
|
||||||
|
|
||||||
if ( ! $config['detail'])
|
if ($config['detail'])
|
||||||
{
|
{
|
||||||
exit(1);
|
echo "<html><h2>Uncaught Exception</h2>
|
||||||
|
<h3>Message:</h3>
|
||||||
|
<pre>".$exception->getMessage()."</pre>
|
||||||
|
<h3>Location:</h3>
|
||||||
|
<pre>".$exception->getFile()." on line ".$exception->getLine()."</pre>
|
||||||
|
<h3>Stack Trace:</h3>
|
||||||
|
<pre>".$exception->getTraceAsString()."</pre></html>";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue