mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #815 Catch and handle CJsonException when calling convertFromJson.
This commit is contained in:
@@ -413,7 +413,15 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
CFlightPlan fp;
|
||||
fp.convertFromJson(json);
|
||||
try
|
||||
{
|
||||
fp.convertFromJson(json);
|
||||
}
|
||||
catch (const CJsonException &ex)
|
||||
{
|
||||
m = ex.toStatusMessage(this, "Parse error in " + fileName);
|
||||
break;
|
||||
}
|
||||
this->fillWithFlightPlanData(fp);
|
||||
}
|
||||
while (false);
|
||||
|
||||
Reference in New Issue
Block a user