You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eba8be6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
14
14
-`MultiError.Format` implements `fmt.Formatter`: `%+v` prints every collected error with `%+v`
15
15
16
16
### Changed
17
-
-`Wrap` and `Newf` reuse the stack trace of the first `*Error` found through single-error wrappers, and `Wrap` gives a stackless `*Error` the current stack trace
18
-
-`Error.Fields` merges the fields of every `*Error`found through single-error wrappers, the outermost value winning
17
+
-`Wrap`, `Newf`, `Error.Fields` and `%+v` look through single-error wrappers for inner `*Error`values: the first stack trace found is reused, fields are merged with the outermost value winning, and every cause is printed
18
+
-`Wrap` gives a stackless `*Error` the current stack trace
19
19
-`Error.WithCause` appends to the causes instead of replacing the cause (**breaking**)
20
20
-`Error.Unwrap` returns `[]error` holding the underlying error and the causes, so `errors.Unwrap` returns nil for an `*Error` (**breaking**)
21
-
-`Error.Is` compares the underlying error instead of the message and fields, so fields no longer scope a match and two `New` calls with the same text no longer match (**breaking**)
22
-
-`%+v` prints the underlying error with `%+v`, the fields, the stack trace, and then the causes of every `*Error` found through single-error wrappers, each with `%+v`
23
-
-`Error.Format` honors width, precision and flags for `%s`, `%q`, `%v` and `%x`
24
-
-`Error.StackTrace` returns a copy
21
+
-`Error.Is` matches when the target's underlying error is in the chain of the underlying error, instead of comparing the message and fields, so fields no longer scope a match and two `New` calls with the same text no longer match (**breaking**)
22
+
-`Error.Format` honors width, precision and flags for `%s`, `%q`, `%v` and `%x`, and `%+v` prints the causes with `%+v` after the stack trace
23
+
-`Error.StackTrace` and `MultiError.Unwrap` return copies
25
24
-`MultiError.Error` indents every message with a tab and reports `no errors` for an empty collection (**breaking**)
26
-
-`MultiError.Unwrap` returns a copy of the collected errors
27
25
- Methods of `Error` and `MultiError` no longer handle nil receivers (**breaking**)
0 commit comments