This commit is contained in:
2020-11-26 11:37:10 +08:00
parent 2f24fa9e60
commit 556b60f256
3 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -203,8 +203,7 @@ class Command extends Component
$this->debug($this->sql . '。 Run-time: ' . (microtime(true) - $time));
}
} catch (\Throwable $exception) {
$this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');
$result = [];
$result = $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');
} finally {
return $result;
}