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)
".$exception->getMessage()."
".$exception->getFile()." on line ".$exception->getLine()."+
".$exception->getFile()." on line ".$exception->getLine().""; + if ($trace) + { + echo "
".$exception->getTraceAsString()."