mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Make Console::Error::WriteLine formattable
This commit is contained in:
@@ -68,8 +68,7 @@ public:
|
||||
|
||||
if (!String::IsNullOrEmpty(text))
|
||||
{
|
||||
Console::Error::WriteFormat("[%s] Warning: %s", _objectName, text);
|
||||
Console::Error::WriteLine();
|
||||
Console::Error::WriteLine("[%s] Warning: %s", _objectName, text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,8 +78,7 @@ public:
|
||||
|
||||
if (!String::IsNullOrEmpty(text))
|
||||
{
|
||||
Console::Error::WriteFormat("[%s] Error: %s", _objectName, text);
|
||||
Console::Error::WriteLine();
|
||||
Console::Error::WriteLine("[%s] Error: %s", _objectName, text);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -154,8 +152,7 @@ namespace ObjectFactory
|
||||
|
||||
if (readContext.WasError())
|
||||
{
|
||||
Console::Error::WriteFormat("Error reading object: '%s'", path);
|
||||
Console::Error::WriteLine();
|
||||
Console::Error::WriteLine("Error reading object: '%s'", path);
|
||||
|
||||
delete result;
|
||||
result = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user