1
0
Fork 0

fix for #381:fgfs -h -v throws error with no --fg-root

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.
This commit is contained in:
Torsten Dreyer 2011-07-28 22:52:40 +02:00
parent b3ad524cec
commit 62e46b09a5

View 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();