tweaks to invite error messages (PR #12640)

GitHub