Changes to invalid remote error message.

fixes #7314