diff --git a/app/index/controller/Install.php b/app/index/controller/Install.php index 0b19b00..9fb4d6b 100644 --- a/app/index/controller/Install.php +++ b/app/index/controller/Install.php @@ -191,7 +191,7 @@ class Install extends BaseController if (version_compare($_version, '5.7.0', '<')) { $this->error('mysql版本最低要求 5.7.x'); } - } catch (\Throwable $e) { + } catch (\mysqli_sql_exception $e) { $this->error($e->getMessage()); } return true;