This commit is contained in:
2025-12-31 00:43:25 +08:00
parent 86b9c46755
commit b5c18fc074
+3 -1
View File
@@ -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]);