]> git.mxchange.org Git - flightgear.git/commitdiff
Tweaks to base version check code.
authorcurt <curt>
Mon, 16 Jul 2001 19:37:13 +0000 (19:37 +0000)
committercurt <curt>
Mon, 16 Jul 2001 19:37:13 +0000 (19:37 +0000)
src/Main/fg_init.cxx
src/Main/main.cxx

index 58fa1f1b541e2962c1b628e6043841c9618394c2..699765c32d3dabf6a282d014514260b63121dfa1 100644 (file)
@@ -192,9 +192,9 @@ string fgBasePackageVersion() {
        old_path.append( "Thanks" );
        sg_gzifstream old( old_path.str() );
        if ( !old.is_open() ) {
-           return "[none found]";
+           return "[none]";
        } else {
-           return "[old version, please upgrade]";
+           return "[old version]";
        }
     }
 
index 1122fb2e153026e38b28885ddd4556aa1bd4bc2a..6f3c3bb39c1327a867e7726b6a4d0b87a3530a03 100644 (file)
@@ -1485,7 +1485,8 @@ int main( int argc, char **argv ) {
     string base_version = fgBasePackageVersion();
     if ( !(base_version == "0.7.9") ) {
        SG_LOG( SG_GENERAL, SG_ALERT, "Base package check failed ... "
-               << base_version);
+               << "Found version " << base_version );
+        SG_LOG( SG_GENERAL, SG_ALERT, "Please upgrade to version 0.7.9" );
        exit(-1);
     }