-
-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
I like doing custom errors with a kind field (usually an enum) to describe the exact type of error, kinda like std::io::Error with its ErrorKind. For labels and help, it's easy to just refer to that field. But from what I see in the docs, there's no way to do the same for code when using the derive macro. Would be nice if that worked, right now I have to implement Diagnostic manually just because of that.
I'm up for adding support for it myself, just need to know what the preferred syntax would be.
Metadata
Metadata
Assignees
Labels
No labels