User-friendly message for token validation error
d4n3436 opened this issue · 0 comments
d4n3436 commented
When an invalid token is passed to DiscordHostConfiguration
on ConfigureDiscordShardedHost()
and ConfigureDiscordHost()
, an OptionsValidationException
exception is thrown with message: "A validation error has occurred.".
This message, however, doesn't doesn't explain what went wrong or what's the root cause of the issue.
I suggest adding a custom, user-friendly message like "An empty or invalid token was provided." on the Validate method.
This will make debugging and troubleshooting easier.