From e0a7536e554c175c1faf336df55d553c7a054bb1 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 18 Sep 2002 16:13:08 +0000 Subject: [PATCH] Erik Hofman: This patch shows fatal error messages even when ./configure --disable-logging is specified. --- src/Main/main.cxx | 9 ++++----- src/Main/options.cxx | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 2cb4f1102..7af69d41a 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1482,11 +1482,10 @@ int mainLoop( int argc, char **argv ) { // tell the operator how to use this application fgUsage(); - SG_LOG( SG_GENERAL, SG_ALERT, "Base package check failed ... " - << "Found version " << base_version << " at: " - << globals->get_fg_root() ); - SG_LOG( SG_GENERAL, SG_ALERT, "Please upgrade to version" - << required_version); + cout << endl << "Base package check failed ... " \ + << "Found version " << base_version << " at: " \ + << globals->get_fg_root() << endl; + cout << "Please upgrade to version" << required_version << endl; exit(-1); } diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 0d16b1953..79c2ee290 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -1147,9 +1147,8 @@ fgParseOptions (const string& path) { } if ( parse_option( line ) == FG_OPTIONS_ERROR ) { - SG_LOG( SG_GENERAL, SG_ALERT, - "Config file parse error: " << path << " '" - << line << "'" ); + cout << endl << "Config file parse error: " << path << " '" + << line << "'" << endl; fgUsage(); exit(-1); } -- 2.39.5