From b447610feefb8b18be29d71d018829ac8e6d1a23 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 29 May 2013 23:32:09 +0300 Subject: [PATCH] Report all missing flags in bad_route This was the intention from the beginning, but somehow else statements slipped in. --- source/libr2c2/route.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libr2c2/route.cpp b/source/libr2c2/route.cpp index e3dfe36..788b235 100644 --- a/source/libr2c2/route.cpp +++ b/source/libr2c2/route.cpp @@ -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, ", "); } -- 2.45.2