- std::string idstr;
- x2str(msg.header.id, idstr);
- STG_LOCKER lock(&mutex);
- errorStr = "Message for user \'";
- errorStr += login + "\' with ID \'";
- errorStr += idstr + "\' does not exist.";
- printfd(__FILE__, "FILES_STORE::EditMessage - %s\n", errorStr.c_str());
+ std::lock_guard lock(m_mutex);
+ m_errorStr = "Message for user \'";
+ m_errorStr += login + "\' with ID \'";
+ m_errorStr += std::to_string(msg.header.id) + "\' does not exist.";
+ printfd(__FILE__, "FILES_STORE::EditMessage - %s\n", m_errorStr.c_str());