1
0
Fork 0

Add error report for Nasal load failures

This commit is contained in:
James Turner 2021-07-29 08:49:24 +01:00
parent 8425a05bbe
commit b01beac664

View file

@ -1392,6 +1392,8 @@ void FGNasalSys::loadPropertyScripts(SGPropertyNode* n)
{ {
SG_LOG(SG_NASAL, SG_ALERT, "Cannot find Nasal script '" << SG_LOG(SG_NASAL, SG_ALERT, "Cannot find Nasal script '" <<
file << "' for module '" << module << "'."); file << "' for module '" << module << "'.");
simgear::reportFailure(simgear::LoadFailure::NotFound, simgear::ErrorCode::AircraftSystems,
string{"Missing nasal file for module:"} + module, sg_location{file});
} }
} }
ok &= p.isNull() ? false : loadModule(p, module); ok &= p.isNull() ? false : loadModule(p, module);