]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/simple.cxx
First quick hack at panel shading.
[flightgear.git] / src / Airports / simple.cxx
index e9a04b9fb19aa643b028bcdd437f3e16adfa22bf..70c59ba9447e4c2a5649f257e580150e15dbf8d3 100644 (file)
@@ -56,7 +56,10 @@ FGAirports::FGAirports( const string& file ) {
     // open the specified database readonly
     storage = new c4_Storage( file.c_str(), false );
 
-    // need to do something about error handling here!
+    if ( !storage->Strategy().IsValid() ) {
+       FG_LOG( FG_GENERAL, FG_ALERT, "Cannot open file: " << file );
+       exit(-1);
+    }
 
     vAirport = new c4_View;
     *vAirport =