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
But, failure is a lack of support for wrapping multiple errors.
I want support for wrapping multiple errors.
But, I found you are working on v2.
Would you happen to have any plan for support for wrapping multiple errors on v2?
workaround and expected
I wrote current workaround and expected codes below.
err:=doSomething(id)
iferr!=nil {
// Currently, we have to combine `failure.Wrap and fmt.Errorf`returnfailure.Wrap(fmt.Errorf("foo bar :%w :%w", err, &MyError{
ID: id
}))
// expected like thisreturnfailure.Wrap(err, failure.Message("foo bar"), failure.WithCause(&MyError{
ID: id
}))
}
The text was updated successfully, but these errors were encountered:
This is a feature request for wrapping multiple errors.
go 1.20 supports wrapping multiple errors.
https://tip.golang.org/doc/go1.20#errors
But, failure is a lack of support for wrapping multiple errors.
I want support for wrapping multiple errors.
But, I found you are working on v2.
Would you happen to have any plan for support for wrapping multiple errors on v2?
workaround and expected
I wrote current workaround and expected codes below.
The text was updated successfully, but these errors were encountered: