File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,8 @@ func (e *joinedError) Error() string {
2525 len (e .Errors ), strings .Join (points , "\n " ))
2626}
2727
28- // WrappedErrors implements the errwrap.Wrapper interface to make this
29- // return value more useful with the errwrap and go-multierror libraries.
30- func (e * joinedError ) WrappedErrors () []error {
28+ // Unwrap implements the Unwrap function added in Go 1.20.
29+ func (e * joinedError ) Unwrap () []error {
3130 if e == nil {
3231 return nil
3332 }
@@ -40,6 +39,7 @@ func (e *joinedError) WrappedErrors() []error {
4039 return result
4140}
4241
42+ // TODO: replace with errors.Join when Go 1.20 is minimum version.
4343func appendErrors (errors []string , err error ) []string {
4444 switch e := err .(type ) {
4545 case * joinedError :
You can’t perform that action at this time.
0 commit comments