MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / WrapWithSeparator

Function WrapWithSeparator

pkg/util/multierror/multierror.go:34–37  ·  view source on GitHub ↗

WrapWithSeparator same as Wrap but uses a custom separator when joining error messages.

(s string, errs ...error)

Source from the content-addressed store, hash-verified

32// WrapWithSeparator same as Wrap but uses a custom separator when joining
33// error messages.
34func 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.
40type multiError []error

Callers 1

parseUnaryExprMethod · 0.92

Calls 2

multiErrorTypeAlias · 0.85
flattenMethod · 0.80

Tested by

no test coverage detected