(errs []error, err error, strs ...string)
| 17 | package errors |
| 18 | |
| 19 | func AddError(errs []error, err error, strs ...string) ([]error, bool) { |
| 20 | ok := false |
| 21 | if err != nil { |
| 22 | errs = append(errs, Wrap(err, strs...)) |
| 23 | ok = true |
| 24 | } |
| 25 | return errs, ok |
| 26 | } |
| 27 | |
| 28 | func AddErrors(errs []error, newErrs []error, strs ...string) ([]error, bool) { |
| 29 | ok := false |
no test coverage detected