Better diagnostic for wrong branch configuration.