We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0a377 commit 7911b5bCopy full SHA for 7911b5b
pkg/errors/errors.go
@@ -81,11 +81,12 @@ func Contains(e1, e2 error) bool {
81
if ce.Msg() == e2.Error() {
82
return true
83
}
84
- return errors.Is(ce.Err(), e2)
+ return Contains(ce.Err(), e2)
85
86
- return errors.Is(e1, e2)
+ return e1.Error() == e2.Error()
87
88
89
+
90
// Wrap returns an Error that wrap err with wrapper.
91
func Wrap(wrapper, err error) Error {
92
if wrapper == nil || err == nil {
0 commit comments