From 47b60135bbeec9b527d71ccdb49e71816e70844e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 24 Apr 2012 08:57:31 -0500 Subject: [PATCH] fix possible error loading error class. --- laravel/laravel.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/laravel/laravel.php b/laravel/laravel.php index 62c5150b..e093dcf0 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -27,18 +27,24 @@ require 'core.php'; set_exception_handler(function($e) { + require path('sys').'error'.EXT; + Error::exception($e); }); set_error_handler(function($code, $error, $file, $line) { + require path('sys').'error'.EXT; + Error::native($code, $error, $file, $line); }); register_shutdown_function(function() { + require path('sys').'error'.EXT; + Error::shutdown(); });