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 35dc722 commit 517d5aeCopy full SHA for 517d5ae
error_113.go
@@ -29,6 +29,7 @@ func (e *Error) IsOfType(t *Type) bool {
29
return false
30
}
31
32
+// burrowForTyped returns either the first *Error in unwrap chain or nil
33
func burrowForTyped(err error) *Error {
34
raw := err
35
for raw != nil {
error_113_test.go
@@ -117,4 +117,9 @@ func TestErrorsAndErrorx(t *testing.T) {
117
require.True(t, errors.Is(err, testType.NewWithNoMessage()))
118
require.True(t, IsOfType(err, testType))
119
})
120
+
121
+ t.Run("LayeredDecorateAgain", func(t *testing.T) {
122
+ err := fmt.Errorf("error test: %w", Decorate(io.EOF, "test"))
123
+ require.True(t, errors.Is(err, io.EOF))
124
+ })
125
0 commit comments