MCPcopy Index your code
hub / github.com/cortexlabs/cortex / AddError

Function AddError

pkg/lib/errors/multi.go:19–26  ·  view source on GitHub ↗
(errs []error, err error, strs ...string)

Source from the content-addressed store, hash-verified

17package errors
18
19func 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
28func AddErrors(errs []error, newErrs []error, strs ...string) ([]error, bool) {
29 ok := false

Callers 2

StructFunction · 0.92
StructFromStringMapFunction · 0.92

Calls 1

WrapFunction · 0.85

Tested by

no test coverage detected