]> git.mxchange.org Git - flightgear.git/commitdiff
fix for #381:fgfs -h -v throws error with no --fg-root
authorTorsten Dreyer <Torsten@t3r.de>
Thu, 28 Jul 2011 20:52:40 +0000 (22:52 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Thu, 28 Jul 2011 20:52:40 +0000 (22:52 +0200)
Because there is no help without fgdata,
be a little more verbose with the error message and
give the user at least a hint about what might help.

src/Main/main.cxx

index 2a2db134465ea880fe13e35acf6c6b48d16db535..68fa86de3acdec10126f145d7c1e133b7e7a343c 100644 (file)
@@ -625,7 +625,8 @@ int fgMainInit( int argc, char **argv ) {
              << "  Version " << base_version << " found at: " \
              << globals->get_fg_root() << endl \
              << "  Version " << required_version << " is required." << endl \
-             << "Please upgrade/downgrade base package." << endl;
+             << "Please upgrade/downgrade base package and set the path to your fgdata" << endl \
+             << "with --fg-root=path_to_your_fgdata" << endl;
 #ifdef _MSC_VER
         cerr << "Hit a key to continue..." << endl;
         cin.get();