This commit is contained in:
xl
2023-07-10 11:23:38 +08:00
parent a4a5025e95
commit 1c07e59357
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -209,9 +209,9 @@ class Command extends Component
*/
private function error(Throwable $throwable): bool
{
error('mysql', [$throwable]);
error($this->sql . '.' . json_encode($this->params, JSON_UNESCAPED_UNICODE));
return addError($throwable->getMessage(), 'mysql');
error(throwable($throwable), []);
return addError($throwable->getMessage(), 'mysql');
}