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 be404a6
Browse filesBrowse the repository at this point in the historyBrowse files
-`Error.Unwrap` returns `[]error` holding both the wrapped error and the cause, so `errors.Unwrap` now returns nil for an `*Error` (**breaking**)
12
+
13
+
### Fixed
14
+
-`Error.WithCause` no longer hides the wrapped error from `errors.Is` and `errors.As`
15
+
-`Error.Is` no longer panics when a field holds a comparable type with an uncomparable dynamic value, such as a struct with an `any` field containing a slice
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ go get github.com/gravitton/errors
21
21
22
22
This package is a drop-in replacement for the standard library `errors` package. It re-exports `Unwrap`, `Is`, `As`, and `AsType` unchanged, so you can swap the import and gain `Error` and `MultiError` without changing any existing call sites.
23
23
24
-
`New` returns an `*Error` instead of an `error`, and `Join`returns a `*MultiError`.
24
+
`New` returns an `*Error` instead of an `error`. `Error`and `MultiError` both implement `Unwrap() []error`, so `errors.Unwrap`returns nil for them; use `Is` and `As` to inspect the chain.
0 commit comments