]> git.mxchange.org Git - flightgear.git/commitdiff
Erik Hofman:
authorcurt <curt>
Wed, 18 Sep 2002 16:13:08 +0000 (16:13 +0000)
committercurt <curt>
Wed, 18 Sep 2002 16:13:08 +0000 (16:13 +0000)
This patch shows fatal error messages even when ./configure --disable-logging
is specified.

src/Main/main.cxx
src/Main/options.cxx

index 2cb4f1102c4a8e38a629703f7b2aa673ba510d08..7af69d41a3cfe7d9aae82a4fa5873b4d5b245646 100644 (file)
@@ -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);
     }
 
index 0d16b1953d5c555cf6dd1a8f9d736048af6ad673..79c2ee290aa044ddbc0ebe5ffdfbc3f3e5632ad2 100644 (file)
@@ -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);
        }