]> git.mxchange.org Git - flightgear.git/commitdiff
better error message to help users and support staff
authormfranz <mfranz>
Sun, 3 Jul 2005 10:27:35 +0000 (10:27 +0000)
committermfranz <mfranz>
Sun, 3 Jul 2005 10:27:35 +0000 (10:27 +0000)
src/Main/fg_init.cxx
src/Main/options.cxx

index f1c50afb8fc0e276a434c9d70bf9830b165432fc..11c52e0ec4d6a151da486b2cbefb8262fd972806 100644 (file)
@@ -531,7 +531,7 @@ static string fgFindAircraftPath( const SGPath &path, const string &aircraft ) {
     ulDirEnt* dire;
     ulDir *dirp = ulOpenDir(path.str().c_str());
     if (dirp == NULL) {
-        cerr << "Unable to open aircraft directory." << endl;
+        cerr << "Unable to open aircraft directory '" << path.str() << '\'' << endl;
         exit(-1);
     }
 
index f49c5bf68190ba4c657bc9c8d1be5c4eca37f6cf..11b5e7c0bd8f1cbe77eecc1c8b7f1b19fc31df0a 100644 (file)
@@ -1727,7 +1727,7 @@ static void fgSearchAircraft(const SGPath &path, string_list &aircraft,
    ulDirEnt* dire;
    ulDir *dirp = ulOpenDir(path.str().c_str());
    if (dirp == NULL) {
-      cerr << "Unable to open aircraft directory." << endl;
+      cerr << "Unable to open aircraft directory '" << path.str() << '\'' << endl;
       exit(-1);
    }