mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
ac31713c84
Summary: Don't use failure's bail!() and ensure!() macros. Instead, failure_ext provides: - bail_err!(err) - Converts its single parameter to the expected error and returns; ie `return Err(From::from(err));` - bail_msg!(fmt, ...) - takes format string parameters and returns a `failure::err_msg()` error - ensure_err!(), ensure_msg!() - corresponding changes Also: - remove all stray references to error-chain - remove direct references to failure_derive (it's reexported via failure and failure_ext) - replace uses of `Err(foo)?;` with `bail_err!()` (since `bail_err` unconditionally returns, but `Err(x)?` does not in principle, which can affect type inference) Reviewed By: kulshrax Differential Revision: D6507717 fbshipit-source-id: 635fb6f8c96d185b195dff171ea9c8db9e83af10 |
||
---|---|---|
.. | ||
mocks | ||
src |