mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-25 12:42:25 +00:00
Remove Duplicative MySQL Error: Log.Out(Logs::General, Logs::Error, Error
This commit is contained in:
parent
2b091206bd
commit
b14c3c8674
@ -3188,14 +3188,11 @@ void Database::ClearGroup(uint32 gid) {
|
|||||||
QueryDatabase(query);
|
QueryDatabase(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 Database::GetGroupID(const char* name){
|
uint32 Database::GetGroupID(const char* name){
|
||||||
|
|
||||||
std::string query = StringFormat("SELECT groupid from group_id where name='%s'", name);
|
std::string query = StringFormat("SELECT groupid from group_id where name='%s'", name);
|
||||||
auto results = QueryDatabase(query);
|
auto results = QueryDatabase(query);
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success()) {
|
||||||
{
|
|
||||||
Log.Out(Logs::General, Logs::Error, "Error getting group id: %s", results.ErrorMessage().c_str());
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user