Make Console::Error::WriteLine formattable

This commit is contained in:
Ted John committed 2016-07-09 15:02:05 +01:00
1 parent 8c2393f5c5
commit 3c64010fe1
9 files changed
+29 -45

No files matched your search

+3 -6
View File
@@ -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;