-
-
Notifications
You must be signed in to change notification settings - Fork 9
User-friendly message for token validation error #30
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels