Fixing error messaging when upstream flag library is inconsistent.