sapling/eden/mononoke/bonsai_globalrev_mapping
Thomas Orozco 9ac8e0505b mononoke: update various error enums to use #[source]
Summary:
We have a number of error enums that wrap an existing errors, but fail to
register the underlying error as a `#[source]`. This results in truncated
context chains when we print the error. This fixes that. It also removes a
bunch of manual `From` implementation that can be provided by thiserror's
`#[from]`.

This also required updating the `Display` implementation for those errors. I've
opted for not printing the underlying error, since the context chain will
include it. This does mean that if we print one of those errors without the
context chain (i.e. `{}` as opposed to `{:#}` or `{:?}`), then we'll lose out a
bit of context. That said, this should be OK, as we really shouldn't ever being
do this, because we'd be missing the rest of the chain anyways.

Reviewed By: StanislavGlebik

Differential Revision: D21399490

fbshipit-source-id: a970a7ef0a9404e51ea3b59d783ceb7bf33f7328
2020-05-05 05:44:52 -07:00
..
globalrev_pushrebase_hook Bump tokio to 0.2.13 2020-04-15 12:18:00 -07:00
schemas Manual synchronization of fbcode/eden and facebookexperimental/eden 2020-02-11 11:42:43 +01:00
src mononoke: update various error enums to use #[source] 2020-05-05 05:44:52 -07:00
test migrate from sql_ext::SqlConstructors to sql_construct 2020-04-02 05:27:16 -07:00
Cargo.toml Bump tokio to 0.2.13 2020-04-15 12:18:00 -07:00