From c6b7028836a4c066ec177193eef208e0b7d1d940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 18:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Command.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Database/Command.php b/Database/Command.php index 30f9de18..363f3618 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -132,9 +132,7 @@ class Command extends Component } return $result; } catch (\Throwable $exception) { - $message = $this->sql . '. error: ' . $exception->getMessage(); - - return $this->addError($message, 'mysql'); + return $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql'); } }