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

Function formatError

checker/env.go:362–375  ·  view source on GitHub ↗
(errMsgs []errorMsg)

Source from the content-addressed store, hash-verified

360}
361
362func formatError(errMsgs []errorMsg) error {
363 errStrs := make([]string, 0)
364 if len(errMsgs) > 0 {
365 for i := 0; i < len(errMsgs); i++ {
366 if errMsgs[i] != "" {
367 errStrs = append(errStrs, string(errMsgs[i]))
368 }
369 }
370 }
371 if len(errStrs) > 0 {
372 return fmt.Errorf("%s", strings.Join(errStrs, "\n"))
373 }
374 return nil
375}

Callers 2

AddIdentsMethod · 0.70
AddFunctionsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected