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 model reader
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e956986bf4
commit
b0bef3264c
@@ -1203,9 +1203,10 @@ namespace BlackCore
|
||||
}
|
||||
if (s && this->m_modelDataReader)
|
||||
{
|
||||
s = inBackground ?
|
||||
this->m_modelDataReader->readFromJsonFilesInBackground(dir) :
|
||||
this->m_modelDataReader->readFromJsonFiles(dir);
|
||||
if(inBackground) { return this->m_modelDataReader->readFromJsonFilesInBackground(dir); }
|
||||
const CStatusMessageList msgs = this->m_modelDataReader->readFromJsonFiles(dir);
|
||||
if (msgs.isFailure()) { CLogMessage::preformatted(msgs); }
|
||||
return msgs.isSuccess();
|
||||
}
|
||||
if (s && this->m_airportDataReader)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user