MCPcopy Create free account
hub / github.com/cortexproject/cortex / Err

Method Err

pkg/util/multierror/multierror.go:24–29  ·  view source on GitHub ↗

Err returns the error list as an error or nil if it is empty.

()

Source from the content-addressed store, hash-verified

22
23// Err returns the error list as an error or nil if it is empty.
24func (es MultiError) Err() error {
25 if len(es) == 0 {
26 return nil
27 }
28 return nonNilMultiError(es)
29}
30
31// New returns a new MultiError containing supplied errors.
32func New(errs ...error) MultiError {

Callers 4

CloseMethod · 0.95
LoadRuleGroupsMethod · 0.95
ForEachUserFunction · 0.95

Calls 1

nonNilMultiErrorTypeAlias · 0.85