1
0
Fork 0

Ground-net errors: use a tag for the ICAO

This commit is contained in:
James Turner 2021-05-26 11:10:21 +01:00
parent 118c2095b6
commit cc60472d26

View file

@ -59,6 +59,7 @@ void XMLLoader::load(FGGroundNetwork* net)
readXML(path, visitor);
if (visitor.hasErrors()) {
flightgear::addSentryTag("ground-net", net->airport()->ident());
flightgear::sentryReportException("Ground-net load error", path.utf8Str());
}
} catch (sg_exception& e) {
@ -90,6 +91,7 @@ void XMLLoader::loadFromPath(FGGroundNetwork* net, const SGPath& path)
FGGroundNetXMLLoader visitor(net);
readXML(path, visitor);
if (visitor.hasErrors()) {
flightgear::addSentryTag("ground-net", net->airport()->ident());
flightgear::sentryReportException("Ground-net load error", path.utf8Str());
}
} catch (sg_exception& e) {