This commit is contained in:
xl
2023-07-10 11:20:55 +08:00
parent 3da1c718d9
commit a4a5025e95
+2 -1
View File
@@ -209,7 +209,8 @@ class Command extends Component
*/ */
private function error(Throwable $throwable): bool private function error(Throwable $throwable): bool
{ {
error('mysql', [$this->sql . '.' . json_encode($this->params, JSON_UNESCAPED_UNICODE), throwable($throwable)]); error('mysql', [$throwable]);
error($this->sql . '.' . json_encode($this->params, JSON_UNESCAPED_UNICODE));
return addError($throwable->getMessage(), 'mysql'); return addError($throwable->getMessage(), 'mysql');
} }