fix(core): Improve output for 2 small errors (#2549)

This commit is contained in:
Barbz
2020-01-15 09:46:49 +01:00
committed by Stoabrogga
parent dd81c21968
commit 7e0fba81b7
4 changed files with 34 additions and 34 deletions

View File

@@ -141,10 +141,10 @@ int Master::Run()
if (!pidFile.empty())
{
if (uint32 pid = CreatePIDFile(pidFile))
sLog->outString("Daemon PID: %u\n", pid);
sLog->outError("Daemon PID: %u\n", pid); // outError for red color in console
else
{
sLog->outString("Cannot create PID file %s.\n", pidFile.c_str());
sLog->outError("Cannot create PID file %s (possible error: permission)\n", pidFile.c_str());
return 1;
}
}