]> git.mxchange.org Git - flightgear.git/commitdiff
Provide error message when file isn't found.
authorThorstenB <brehmt@gmail.com>
Sun, 11 Dec 2011 12:04:10 +0000 (13:04 +0100)
committerThorstenB <brehmt@gmail.com>
Sun, 11 Dec 2011 13:06:17 +0000 (14:06 +0100)
src/Sound/fg_fx.cxx

index 390609567badda7c55f4d6d73ac342029e16cea2..94b7f6b98a5f84f1d2526e7b8d4ae0d3b5263222 100644 (file)
@@ -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());