(errs []error, newErrs []error, strs ...string)
| 26 | } |
| 27 | |
| 28 | func AddErrors(errs []error, newErrs []error, strs ...string) ([]error, bool) { |
| 29 | ok := false |
| 30 | for _, err := range newErrs { |
| 31 | if err != nil { |
| 32 | errs = append(errs, Wrap(err, strs...)) |
| 33 | ok = true |
| 34 | } |
| 35 | } |
| 36 | return errs, ok |
| 37 | } |
| 38 | |
| 39 | func WrapAll(errs []error, strs ...string) []error { |
| 40 | if !HasError(errs) { |
no test coverage detected