refs #853, JSON exception handling adjustments for airport reader

This commit is contained in:
Klaus Basan
2017-01-05 18:57:18 +01:00
committed by Mathew Sutcliffe
parent ee27ca4d44
commit e956986bf4
3 changed files with 43 additions and 17 deletions

View File

@@ -1209,9 +1209,10 @@ namespace BlackCore
}
if (s && this->m_airportDataReader)
{
s = inBackground ?
this->m_airportDataReader->readFromJsonFilesInBackground(dir) :
this->m_airportDataReader->readFromJsonFiles(dir);
if (inBackground) { return this->m_airportDataReader->readFromJsonFilesInBackground(dir); }
const CStatusMessageList msgs = this->m_airportDataReader->readFromJsonFiles(dir);
if (msgs.isFailure()) { CLogMessage::preformatted(msgs); }
return msgs.isSuccess();
}
return s;
}