mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
56dbf182e3
Summary: For invocations of `ensure!` where the argument is one of the comparison operators `==` `<=` `<` `!=` `>=` `>` and the lhs and rhs of the operator both have a `Debug` impl, we now render both sides as part of the error message. ### Example: ``` ensure!(flags.len() <= 40); ``` ``` ensure!(kind == Kind::File); ``` Before: ``` Condition failed: `flags.len() <= 40` Condition failed: `kind == Kind::File` ``` After: ``` Condition failed: `flags.len() <= 40` (99 vs 40) Condition failed: `kind == Kind::File` (Symlink vs File) ``` Reviewed By: zertosh Differential Revision: D32598267 fbshipit-source-id: 70fdab6d8f0e3ceceb98e651eab0a73795cadaeb |
||
---|---|---|
.. | ||
mononoke |