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;
}
+2 -2
View File
@@ -14,11 +14,11 @@ abstract class Tcp extends Server implements Service
use \HttpServer\Service\Abstracts\Server;
/** @var Closure|array */
public Closure|array $unpack;
public $unpack;
/** @var Closure|array */
public Closure|array $pack;
public $pack;
}
+2
View File
@@ -99,6 +99,8 @@ class BaseObject implements Configure
}
$this->error($message);
}
$logger = Snowflake::app()->getLogger();
$logger->error($message, $model);
return FALSE;
}