Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.
This repository was archived by the owner on May 21, 2024. It is now read-only.

Argument parsing errors should have designated Error enum variant #28

@kangalio

Description

@kangalio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestProposition for a new feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions