]> git.mxchange.org Git - flightgear.git/commitdiff
Nasal security: give a more user-friendly error on self-check fail
authorRebecca N. Palmer <rebecca_palmer@zoho.com>
Wed, 10 Feb 2016 22:54:52 +0000 (22:54 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Wed, 10 Feb 2016 22:54:52 +0000 (22:54 +0000)
https://sourceforge.net/p/flightgear/mailman/message/34701972/

src/Main/util.cxx

index cfc12cb5fa2aeee1c9c9e852f457ed9ce6405066..a661a5212045524a89f75b589f1dcb048e936d2b 100644 (file)
@@ -149,8 +149,8 @@ void fgInitAllowedPaths()
         fgValidatePath(globals->get_fg_home() + "/aircraft-data/yes..xml",true).empty() ||
         fgValidatePath(globals->get_fg_root() + "/.\\yes.bmp",false).empty()) {
             flightgear::fatalMessageBox("Nasal initialization error",
-                                    "fgInitAllowedPaths() does not work",
-                                    "");
+                                    "The FG_HOME directory must not be inside any of the FG_ROOT, FG_AIRCRAFT or FG_SCENERY directories",
+                                    "(check that you have not accidentally included an extra :, as an empty part means the current directory)");
             exit(-1);
     }
 }