Provide error message when file isn't found.
This commit is contained in:
parent
14b76a1d63
commit
7f5dfe1421
1 changed files with 6 additions and 0 deletions
|
@ -94,6 +94,12 @@ FGFX::init()
|
|||
}
|
||||
|
||||
SGPath path = globals->resolve_aircraft_path(path_str);
|
||||
if (path.isNull())
|
||||
{
|
||||
SG_LOG(SG_SOUND, SG_ALERT,
|
||||
"File not found: '" << path_str);
|
||||
return;
|
||||
}
|
||||
SG_LOG(SG_SOUND, SG_INFO, "Reading sound " << node->getName()
|
||||
<< " from " << path.str());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue