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:
parent
b3ad524cec
commit
62e46b09a5
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue