From a5aaf33fe5c878d32af4ca7ce294242c08e527ed Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 12 Nov 2011 00:07:13 -0600 Subject: [PATCH] fix error detail view. --- laravel/laravel.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/laravel/laravel.php b/laravel/laravel.php index 9a6740ba..3659d86f 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -32,9 +32,15 @@ call_user_func($config['handler'], $exception, $config); - if ( ! $config['detail']) + if ($config['detail']) { - exit(1); + echo "

Uncaught Exception

+

Message:

+
".$exception->getMessage()."
+

Location:

+
".$exception->getFile()." on line ".$exception->getLine()."
+

Stack Trace:

+
".$exception->getTraceAsString()."
"; } };