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

Function formatError

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

Source from the content-addressed store, hash-verified

381}
382
383func formatError(errMsgs []errorMsg) error {
384 errStrs := make([]string, 0)
385 if len(errMsgs) > 0 {
386 for i := 0; i < len(errMsgs); i++ {
387 if errMsgs[i] != "" {
388 errStrs = append(errStrs, string(errMsgs[i]))
389 }
390 }
391 }
392 if len(errStrs) > 0 {
393 return fmt.Errorf("%s", strings.Join(errStrs, "\n"))
394 }
395 return nil
396}

Callers 2

AddIdentsMethod · 0.70
AddFunctionsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected