mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-16 17:27:18 +02:00
Move away from C format to cpp::fmt.
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
||||
{
|
||||
if (!mHandle)
|
||||
{
|
||||
STHROWF("Cannot %s. Invalid directory handle.", action);
|
||||
STHROWF("Cannot {}. Invalid directory handle.", action);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -396,7 +396,7 @@ public:
|
||||
{
|
||||
if (!mHandle)
|
||||
{
|
||||
STHROWF("Cannot %s. Invalid file handle.", action);
|
||||
STHROWF("Cannot {}. Invalid file handle.", action);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -527,11 +527,11 @@ public:
|
||||
// Now we can throw the exception
|
||||
if (errno != 0)
|
||||
{
|
||||
STHROWF("Failed to open file: %s [%s]", path.mPtr, strerror(errno));
|
||||
STHROWF("Failed to open file: {} [{}]", path.mPtr, strerror(errno));
|
||||
}
|
||||
else
|
||||
{
|
||||
STHROWLASTF("Failed to open file: %s", path.mPtr);
|
||||
STHROWLASTF("Failed to open file: {}", path.mPtr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -376,7 +376,7 @@ SysPath & SysPath::Assign(const Buffer & path, int32_t size)
|
||||
}
|
||||
else
|
||||
{
|
||||
STHROWF("The specified path size is out of range: %u >= %u", size, path.Capacity());
|
||||
STHROWF("The specified path size is out of range: {} >= {}", size, path.Capacity());
|
||||
}
|
||||
// Allow chaining
|
||||
return *this;
|
||||
@@ -445,7 +445,7 @@ SysPath & SysPath::Assign(const Buffer & path, Style style, int32_t size)
|
||||
}
|
||||
else
|
||||
{
|
||||
STHROWF("The specified path size is out of range: %u >= %u", size, path.Capacity());
|
||||
STHROWF("The specified path size is out of range: {} >= {}", size, path.Capacity());
|
||||
}
|
||||
// Allow chaining
|
||||
return *this;
|
||||
|
Reference in New Issue
Block a user