Small cosmetic log output change when an unsupported platform has been entered into es_systems.cfg.

This commit is contained in:
Leon Styhre 2021-02-07 12:24:22 +01:00
parent 9c2d582f7d
commit 6713d0f7a5

View file

@ -306,11 +306,11 @@ bool SystemData::loadConfig()
break; break;
} }
// If there appears to be an actual platform ID supplied // If there's a platform entry defined but it does not match the list of supported
// but it didn't match the list, generate a warning. // platforms, then generate a warning.
if (str != "" && platformId == PlatformIds::PLATFORM_UNKNOWN) if (str != "" && platformId == PlatformIds::PLATFORM_UNKNOWN)
LOG(LogWarning) << "Unknown platform for system \"" << name << LOG(LogWarning) << "Unknown platform \"" << str << "\" defined for system \"" <<
"\" (platform \"" << str << "\" from list \"" << platformList << "\")"; name << "\"";
else if (platformId != PlatformIds::PLATFORM_UNKNOWN) else if (platformId != PlatformIds::PLATFORM_UNKNOWN)
platformIds.push_back(platformId); platformIds.push_back(platformId);
} }