WrapWithSeparator same as Wrap but uses a custom separator when joining error messages.
(s string, errs ...error)
| 32 | // WrapWithSeparator same as Wrap but uses a custom separator when joining |
| 33 | // error messages. |
| 34 | func WrapWithSeparator(s string, errs ...error) error { |
| 35 | sep = s |
| 36 | return multiError(errs).flatten() |
| 37 | } |
| 38 | |
| 39 | // multiError bundles several errors together into a single error. |
| 40 | type multiError []error |
no test coverage detected