MCPcopy
hub / github.com/cortexlabs/cortex / ErrorDuplicatedValue

Function ErrorDuplicatedValue

pkg/lib/configreader/errors.go:323–328  ·  view source on GitHub ↗
(val interface{})

Source from the content-addressed store, hash-verified

321}
322
323func ErrorDuplicatedValue(val interface{}) error {
324 return errors.WithStack(&errors.Error{
325 Kind: ErrDuplicatedValue,
326 Message: fmt.Sprintf("%s is duplicated", s.UserStr(val)),
327 })
328}
329
330func ErrorTooFewElements(minLength int) error {
331 return errors.WithStack(&errors.Error{

Callers 1

validateStringListFunction · 0.85

Calls 2

WithStackFunction · 0.92
UserStrMethod · 0.45

Tested by

no test coverage detected