mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
9ac8e0505b
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
28 lines
909 B
TOML
28 lines
909 B
TOML
[package]
|
|
name = "bookmarks"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["src/**/*.rs"]
|
|
|
|
[dependencies]
|
|
bookmarks_types = { path = "bookmarks_types" }
|
|
context = { path = "../server/context" }
|
|
mercurial_types = { path = "../mercurial/types" }
|
|
mononoke_types = { path = "../mononoke_types" }
|
|
futures_ext = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
sql = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
stats = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
anyhow = "1.0"
|
|
futures = "0.1"
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
mononoke_types-mocks = { path = "../mononoke_types/mocks" }
|
|
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
maplit = "1.0"
|
|
quickcheck = "0.9"
|
|
tokio = "0.1"
|
|
tokio-compat = "0.1"
|