Skip to content

Commit 47b6013

Browse files
committed
fix possible error loading error class.
1 parent 39601e8 commit 47b6013

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

laravel/laravel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,24 @@
2727

2828
set_exception_handler(function($e)
2929
{
30+
require path('sys').'error'.EXT;
31+
3032
Error::exception($e);
3133
});
3234

3335

3436
set_error_handler(function($code, $error, $file, $line)
3537
{
38+
require path('sys').'error'.EXT;
39+
3640
Error::native($code, $error, $file, $line);
3741
});
3842

3943

4044
register_shutdown_function(function()
4145
{
46+
require path('sys').'error'.EXT;
47+
4248
Error::shutdown();
4349
});
4450

0 commit comments

Comments
 (0)