From 62e46b09a54092cda80c280be122451bf52535e8 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 28 Jul 2011 22:52:40 +0200 Subject: [PATCH] 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. --- src/Main/main.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 2a2db1344..68fa86de3 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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();