better error when no primary