MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Append

Method Append

common/errors.go:74–81  ·  view source on GitHub ↗

Append creates a new Errors object with the current and input errors.

(errs []*Error)

Source from the content-addressed store, hash-verified

72
73// Append creates a new Errors object with the current and input errors.
74func (e *Errors) Append(errs []*Error) *Errors {
75 return &Errors{
76 errors: append(e.errors[:], errs...),
77 source: e.source,
78 numErrors: e.numErrors + len(errs),
79 maxErrorsToReport: e.maxErrorsToReport,
80 }
81}
82
83// ToDisplayString returns the error set to a newline delimited string.
84func (e *Errors) ToDisplayString() string {

Callers 2

msgSetListFieldFunction · 0.45

Calls

no outgoing calls

Tested by 1