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