1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-02 23:17:12 +02:00

Move away from C format to cpp::fmt.

This commit is contained in:
Sandu Liviu Catalin
2021-02-03 17:50:39 +02:00
parent 09a1767ffe
commit 0de21ae5a0
39 changed files with 215 additions and 215 deletions

View File

@ -19,20 +19,20 @@ void IniResult::Check() const
switch (m_Result)
{
case SI_FAIL:
STHROWF("Unable to %s. Probably invalid", m_Action.c_str());
STHROWF("Unable to {}. Probably invalid", m_Action);
break;
case SI_NOMEM:
STHROWF("Unable to %s. Ran out of memory", m_Action.c_str());
STHROWF("Unable to {}. Ran out of memory", m_Action);
break;
case SI_FILE:
STHROWF("Unable to %s. %s", strerror(errno));
STHROWF("Unable to {}. {}", m_Action, strerror(errno));
break;
case SI_OK:
case SI_UPDATED:
case SI_INSERTED:
break; /* These are not error messages. */
default:
STHROWF("Unable to %s for some unforeseen reason", m_Action.c_str());
STHROWF("Unable to {} for some unforeseen reason", m_Action);
}
}