update exception catching (#1661)

This commit is contained in:
David Markowitz
2024-12-04 01:30:14 -08:00
committed by GitHub
parent ec4ec2133b
commit 129d9fd0b9
7 changed files with 12 additions and 12 deletions

View File

@@ -81,7 +81,7 @@ int main(int argc, char** argv) {
//Connect to the MySQL Database
try {
Database::Connect();
} catch (sql::SQLException& ex) {
} catch (std::exception& ex) {
LOG("Got an error while connecting to the database: %s", ex.what());
Database::Destroy("ChatServer");
delete Game::server;