Change: unify the style of console error messages and convert to fmt

Always start with a capital, do not add "ERROR: " in front of it.
This commit is contained in:
rubidium42
2021-06-12 21:07:04 +02:00
committed by rubidium42
parent de49727ae8
commit efd4ba4797
4 changed files with 66 additions and 70 deletions

View File

@@ -399,10 +399,7 @@ void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel
if (textref_stack_size > 0) StopTextRefStackUsage();
switch (wl) {
case WL_WARNING: IConsolePrint(CC_WARNING, buf); break;
default: IConsoleError(buf); break;
}
IConsolePrint(wl == WL_WARNING ? CC_WARNING : CC_ERROR, buf);
}
bool no_timeout = wl == WL_CRITICAL;