commit | de6740a55f8d778e53755317dc50aae950c760de | [log] [tgz] |
---|---|---|
author | Abhinav Gupta <mail@abhinavg.net> | Fri Mar 24 14:27:19 2017 -0700 |
committer | GitHub <noreply@github.com> | Fri Mar 24 14:27:19 2017 -0700 |
tree | 33a24fa3ce61996cfbf52de769dfd585da877208 | |
parent | a0f768a1e18683858c0bfc4e1f13ee1e0b77b482 [diff] |
formatting: %+v should apply to nested errors (#5) `%+v` on a multierr should use `%+v` on the nested errors. That is, fmt.Sprintf("%+v", multierr.Combine(err1, err2)) Should use `fmt.Sprintf("%+v", err1)` and `fmt.Sprinf("%+v", err2)` in the output rather than `err{1, 2}.Error()`.
multierr
allows combining one or more Go error
s together.
go get -u go.uber.org/multierr
Beta
Released under the MIT License.