]> git.tdb.fi Git - r2c2.git/commitdiff
Report all missing flags in bad_route
authorMikko Rasa <tdb@tdb.fi>
Wed, 29 May 2013 20:32:09 +0000 (23:32 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 29 May 2013 20:32:09 +0000 (23:32 +0300)
This was the intention from the beginning, but somehow else statements
slipped in.

source/libr2c2/route.cpp

index e3dfe36961c66a5a9e37d518373cc927d18df4c2..788b235658ff53b148ee36c18b47ef65c268eeec 100644 (file)
@@ -134,9 +134,9 @@ string bad_route::get_message(RouteValidityMask valid)
        unsigned i = 0;
        if(!(valid&1))
                reasons[i++] = "unlinked";
-       else if(!(valid&2))
+       if(!(valid&2))
                reasons[i++] = "branching";
-       else if(!(valid&4))
+       if(!(valid&4))
                reasons[i++] = "not smooth";
        return join(reasons, reasons+i, ", ");
 }