MCPcopy
hub / github.com/devtron-labs/devtron / AppendErrorString

Function AppendErrorString

util/helper.go:77–82  ·  view source on GitHub ↗
(errs []string, err error)

Source from the content-addressed store, hash-verified

75}
76
77func AppendErrorString(errs []string, err error) []string {
78 if err != nil {
79 errs = append(errs, err.Error())
80 }
81 return errs
82}
83
84func GetErrorOrNil(errs []string) error {
85 if len(errs) > 0 {

Callers 15

ExecuteMethod · 0.92
executeDeploymentCreateFunction · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
validateConfigMapFunction · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…