Closed gbjk closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
08da42d
) 35.89% compared to head (ae74d1d
) 37.80%. Report is 1 commits behind head on master.
Note: This commit is from #1358 and has been reviewed already by everyone
Retain the .msg field of a go fmt.Errorf .msg field returned by .Error() when wrapping multiple errors. This fixes a situation where a nested stack of errors would lose formatting information, which is often used to supply identifying context. e.g.
This isn't really an issue with our implementation; Calling Unwrap() on a fmt.Errorf() which returns a wrapErrors will lose that formatting. Our issue was that we were using just Unwrap() to bind together our chain-of-custody.
Type of change
How has this been tested