fix error detail view.

This commit is contained in:
Taylor Otwell 2011-11-12 00:07:13 -06:00
parent 32684fa12e
commit a5aaf33fe5
1 changed files with 8 additions and 2 deletions

View File

@ -32,9 +32,15 @@
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>";
}
};