From: Rebecca N. Palmer Date: Wed, 10 Feb 2016 22:54:52 +0000 (+0000) Subject: Nasal security: give a more user-friendly error on self-check fail X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=16e6009255678501ea91f95360c9e9628b6eddb9;p=flightgear.git Nasal security: give a more user-friendly error on self-check fail https://sourceforge.net/p/flightgear/mailman/message/34701972/ --- diff --git a/src/Main/util.cxx b/src/Main/util.cxx index cfc12cb5f..a661a5212 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -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); } }