Ref T710 Propagate libxplanemp CSL load error messages as swift validation errors.

This commit is contained in:
Mat Sutcliffe
2019-07-29 22:08:39 +01:00
parent 8f036b1442
commit eaa24952d1
5 changed files with 13 additions and 9 deletions

View File

@@ -595,7 +595,11 @@ namespace BlackSimPlugin
{
if (CDirectoryUtils::isSameOrSubDirectoryOf(package, simDir))
{
m_trafficProxy->loadPlanesPackage(package);
const QString message = m_trafficProxy->loadPlanesPackage(package);
if (!message.isEmpty())
{
CLogMessage(this).validationError(u"CSL package '%1' xpmp error: %2") << package << message;
}
}
else
{