Duplicate invite can raise cryptic messages

Fixed via:

https://github.com/discourse/discourse/commit/26ccf61ab187238ac2741f4b986279c532419de0

This error was specific to non-staff users. Now the error message will be generic:

Sorry, we couldn’t invite that person. Perhaps they have already been invited? (Invites are rate limited)

6 Likes