Skip to content

Feature request: diagnostic/metadata information #35

@milesj

Description

@milesj

I'm a heavy miette user but I would like to try an error_set + eros combination. The nice thing about miette, besides the fancy UI rendering, is that it associates metadata with each error, like an error ID/code, URL, help string, etc.

It would be nice if error_set supported this natively, so that we don't have to compose so many error related libaries. Maybe something like this:

error_set! {
    LoginError = {
        #[error(code = "login:io", help = "Try x y z", url = "https://learn/more")]
        #[display("Io Error: {0}")]
        IoError(std::io::Error),
    }
}

I totally understand if this is out of scope of the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions