Browse Source

fix possible error loading error class.

Taylor Otwell 12 years ago
parent
commit
47b60135bb
1 changed files with 6 additions and 0 deletions
  1. 6 0
      laravel/laravel.php

+ 6 - 0
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();
 });