You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 21, 2024. It is now read-only.
Currently, when a user gives too many arguments to a command, or too few, or their input was malformed, serenity bubbles up the error as a Error::User. However, the error doesn't happen in user code at all; it happens in serenity's dispatch glue code. I think it would be more intuitive and more useful to bubble up argument parsing errors as Error::Dispatch
Edit: we decided that a new designated Error enum variant Error::Argument(ArgumentError) for argument parsing errors is better
Currently, when a user gives too many arguments to a command, or too few, or their input was malformed, serenity bubbles up the error as a
Error::User. However, the error doesn't happen in user code at all; it happens in serenity's dispatch glue code. I think it would be more intuitive and more useful to bubble up argument parsing errors asError::DispatchEdit: we decided that a new designated Error enum variant
Error::Argument(ArgumentError)for argument parsing errors is better