mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Address some clang-tidy warnings
This commit is contained in:
@@ -942,8 +942,8 @@ void ModStorageDatabaseSQLite3::listMods(std::vector<std::string> *res)
|
||||
return 0;
|
||||
}, (void *) res, &errmsg);
|
||||
if (status != SQLITE_OK) {
|
||||
DatabaseException e(std::string("Error trying to list mods with metadata: ") + errmsg);
|
||||
auto msg = std::string("Error trying to list mods with metadata: ") + errmsg;
|
||||
sqlite3_free(errmsg);
|
||||
throw e;
|
||||
throw DatabaseException(msg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user