Skip to content

Move away from error_chain. Failure, Anyhow, thiserror ? #22

@spazm

Description

@spazm

Previously, the advice was to go from error_chain to failure, but now failure is also deprecated.

Our use of errors{} in the error_chain! macro uses description and display to generate the errors, which is now deprecated, preferring impl Display. That's way more verbose, so there must be a way to generate/derive our errors cleanly. The error_chain documentation has not been updated to describe how to use the new syntax.

failure - a new error management story

Notice: failure is deprecated. If you liked failure's API, consider using:

Anyhow is a good replacement for failure::Error.
thiserror is a good, near drop-in replacement for #[derive(Fail)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions