Open r2k1 opened 3 years ago
Wrapcheck throws an error for the next case:
import "errors" func Test_AnonFunc(t *testing.T) { test := func() error { return errors.New("test") } fmt.Println(test()) }
error returned from external package is unwrapped: sig: func errors.New(text string) error
Thanks for the report. Will have a look when I get some time.
Bump on this. it is driving me a bit crazy.
Wrapcheck throws an error for the next case:
error returned from external package is unwrapped: sig: func errors.New(text string) error