mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #853, JSON exception handling adjustments for airport reader
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ee27ca4d44
commit
e956986bf4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user