Files
cosmos-sdk/types
Alessio Treglia 0ba4e3a630 types/errors: make Wrap() work like github.com/pkg/errors.Wrap
Wrap(ErrInsufficientFunds, "40 < 500") returns strings like
"insufficient funds: 40 < 50". Although he function syntax
fits perfectly SDK app developers use case and as such it
should not be changed, the interface is still counter-intuitive
as most Golang developers may reasonably expect a different
result similar to what other popular libraries' (see [1])
would produce (e.g. "40 < 500: insufficient funds").

Follow up PR of #5876.

[1] https://godoc.org/github.com/pkg/errors#Wrapf
2020-03-28 00:19:44 +01:00
..
2020-03-26 12:46:10 -04:00
2020-03-04 17:49:59 +00:00
2020-03-04 17:49:59 +00:00
2020-03-26 12:46:10 -04:00
2020-03-04 17:49:59 +00:00
2019-12-10 11:48:57 -05:00
2020-03-04 17:49:59 +00:00
2020-03-04 17:49:59 +00:00
2020-03-26 12:46:10 -04:00
2020-02-19 10:56:22 +01:00
2020-03-04 17:49:59 +00:00
2020-03-04 17:49:59 +00:00
2020-03-13 09:57:15 -04:00
2020-03-26 12:46:10 -04:00
2020-03-26 12:46:10 -04:00
2020-03-04 17:49:59 +00:00
2020-03-04 17:49:59 +00:00
2020-03-26 12:46:10 -04:00