failure icon indicating copy to clipboard operation
failure copied to clipboard

Unclear how to wrap around errors

Open Binero opened this issue 7 years ago • 1 comments

Is there a way to wrap around other errors, and have them as causes? .context adds context to an error, but it loses type-ness. Is there a way to add a variant to your failure that wraps around other error?

Binero avatar Dec 17 '17 20:12 Binero

I am missing this as well. I would really like to replicate the chain_err behavior of error-chain. context seems to be the closest there is, with the downside that the type information is lost.

mthiesen avatar Dec 19 '17 23:12 mthiesen