diff --git a/kiri-engine/Error/ErrorHandler.php b/kiri-engine/Error/ErrorHandler.php index 022fc8ad..e7c456b6 100644 --- a/kiri-engine/Error/ErrorHandler.php +++ b/kiri-engine/Error/ErrorHandler.php @@ -127,16 +127,17 @@ class ErrorHandler extends Component implements ErrorInterface /** + * @throws \ErrorException * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface * @throws ReflectionException */ public function errorHandler() { - var_dump(func_get_args()); + $error = func_get_args(); event(new OnSystemError()); - debug_print_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT); + throw new \ErrorException($error[1], $error[0], 1, $error[2], $error[3]); } }