diff --git a/laravel/error.php b/laravel/error.php index 23574efa..bf668d8a 100644 --- a/laravel/error.php +++ b/laravel/error.php @@ -12,7 +12,7 @@ public static function exception($exception) { static::log($exception); - ob_end_clean(); + ob_get_level() and ob_end_clean(); // If detailed errors are enabled, we'll just format the exception into // a simple error message and display it on the screen. We don't use a