diff --git a/laravel/error.php b/laravel/error.php index c798666a..4c8cfd50 100644 --- a/laravel/error.php +++ b/laravel/error.php @@ -8,7 +8,7 @@ class Error { * @param Exception $exception * @return void */ - public static function exception($exception) + public static function exception($exception, $trace = true) { static::log($exception); @@ -23,9 +23,13 @@ public static function exception($exception)

Message:

".$exception->getMessage()."

Location:

-
".$exception->getFile()." on line ".$exception->getLine()."
+
".$exception->getFile()." on line ".$exception->getLine()."
"; + if ($trace) + { + echo "

Stack Trace:

".$exception->getTraceAsString()."
"; + } } // If we're not using detailed error messages, we'll use the event @@ -83,7 +87,7 @@ public static function shutdown() { extract($error, EXTR_SKIP); - static::exception(new \ErrorException($message, $type, 0, $file, $line)); + static::exception(new \ErrorException($message, $type, 0, $file, $line), false); } }