Skip to content

Switch from anyhow::error to thiserror or similar.Β #382

@jakibaki

Description

@jakibaki

Is your feature request related to a problem? Please describe.
anyhow:error as a "catch-all" error type is not ideal as it means throwing away the benefit gained from rusts native error handling and type system which enable great error quality with little added boilerplate code.

Describe the solution you'd like
https://docs.rs/thiserror/latest/thiserror/ < is my personal choice of crates for this purpose however there are others.

Describe alternatives you've considered
There is the alternative of manually building the error types and not using any crate at all but I don't see much of a reason for that.

There might be some other crates better suited for this specific job but I am not aware of any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions