-
Notifications
You must be signed in to change notification settings - Fork 5
Feature request: diagnostic/metadata information #35
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request