eee
This commit is contained in:
@@ -89,7 +89,7 @@ class ErrorHandler extends Component implements ErrorInterface
|
||||
return;
|
||||
}
|
||||
|
||||
$this->getLogger()->println($lastError['message'] . PHP_EOL);
|
||||
$this->getLogger()->println(json_encode($lastError,JSON_UNESCAPED_UNICODE));
|
||||
|
||||
event(new OnSystemError());
|
||||
}
|
||||
@@ -119,6 +119,8 @@ class ErrorHandler extends Component implements ErrorInterface
|
||||
{
|
||||
$error = func_get_args();
|
||||
|
||||
$this->getLogger()->println(json_encode($error,JSON_UNESCAPED_UNICODE));
|
||||
|
||||
event(new OnSystemError());
|
||||
|
||||
throw new ErrorException($error[1], $error[0], 1, $error[2], $error[3]);
|
||||
|
||||
Reference in New Issue
Block a user