Add error report for Nasal load failures
This commit is contained in:
parent
8425a05bbe
commit
b01beac664
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue