From 3300ac543eb4f9088af5944e9c93be28079eb996 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Tue, 28 Jul 2020 09:58:50 +0200 Subject: [PATCH] Print missing --data path in the "fatal message box" As suggested by Slawek Mikula: https://sourceforge.net/p/flightgear/codetickets/2164/#c397 --- src/Main/globals.hxx | 2 +- src/Main/options.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Main/globals.hxx b/src/Main/globals.hxx index 3db59ef28..066478ecd 100644 --- a/src/Main/globals.hxx +++ b/src/Main/globals.hxx @@ -101,7 +101,7 @@ private: */ PathList additional_data_paths; - PathList _dataPathsAfterFGRoot; ///< paths with a /lower/ prioirty than FGRoot + PathList _dataPathsAfterFGRoot; ///< paths with a /lower/ priority than FGRoot // Users home directory for data SGPath fg_home; diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 8391f9979..9bf164a7f 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -733,7 +733,8 @@ fgOptAdditionalDataDir(const char* arg) const SGPath dataPath = SGPath::fromUtf8(arg); if (!dataPath.exists()) { SG_LOG(SG_GENERAL, SG_ALERT, "--data path not found:'" << dataPath << "'"); - flightgear::fatalMessageBoxWithoutExit("FlightGear", "Data path not found"); + flightgear::fatalMessageBoxWithoutExit( + "FlightGear", "Data path not found: '" + dataPath.utf8Str() + "'."); return FG_OPTIONS_EXIT; }