From: mfranz Date: Sun, 3 Jul 2005 10:27:35 +0000 (+0000) Subject: better error message to help users and support staff X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f2d14a41f7582555724396f21f0ab04d73e1bda;p=flightgear.git better error message to help users and support staff --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index f1c50afb8..11c52e0ec 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -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); } diff --git a/src/Main/options.cxx b/src/Main/options.cxx index f49c5bf68..11b5e7c0b 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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); }