This commit is contained in:
2023-04-18 23:47:30 +08:00
parent 7472217482
commit ebbc3368bd
5 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -211,7 +211,8 @@ class Command extends Component
private function error(Throwable $throwable): bool
{
$message = $this->sql . '.' . json_encode($this->params, JSON_UNESCAPED_UNICODE);
return \Kiri::getLogger()->addError($message . $throwable->getMessage(), 'mysql');
error($throwable, [$message]);
return addError($throwable->getMessage(), 'mysql');
}