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)]
Previously, the advice was to go from
error_chaintofailure, but nowfailureis also deprecated.Our use of
errors{}in theerror_chain!macro usesdescriptionanddisplayto generate the errors, which is now deprecated, preferringimpl 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.