if (store->AddMessage(msg, login))
{
errorStr = store->GetStrError();
- STG_LOGGER & WriteServLog = GetStgLogger();
WriteServLog("Error adding message %s", errorStr.c_str());
WriteServLog("%s", store->GetStrError().c_str());
return -1;
if (store->AddMessage(msg, login))
{
errorStr = store->GetStrError();
- STG_LOGGER & WriteServLog = GetStgLogger();
WriteServLog("Error adding message %s", errorStr.c_str());
WriteServLog("%s", store->GetStrError().c_str());
return -1;
if (it->header.repeat < 0)
{
printfd(__FILE__, "DelMessage\n");
- store->DelMessage(it->header.id, login);
+ if (store->DelMessage(it->header.id, login))
+ {
+ WriteServLog("Error deleting message: '%s'", store->GetStrError().c_str());
+ printfd(__FILE__, "Error deleting message: '%s'\n", store->GetStrError().c_str());
+ }
messages.erase(it++);
}
else
#endif
if (store->EditMessage(*it, login))
{
- printfd(__FILE__, "EditMessage Error %s\n", store->GetStrError().c_str());
+ WriteServLog("Error modifying message: '%s'", store->GetStrError().c_str());
+ printfd(__FILE__, "Error modifying message: '%s'\n", store->GetStrError().c_str());
}
++it;
}