Commit a5aaf33f authored by Taylor Otwell's avatar Taylor Otwell

fix error detail view.

parent 32684fa1
...@@ -32,9 +32,15 @@ $handler = function($exception) ...@@ -32,9 +32,15 @@ $handler = function($exception)
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>";
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment