MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ErrorNonStringKeyFound

Function ErrorNonStringKeyFound

pkg/lib/configreader/errors.go:308–313  ·  view source on GitHub ↗
(key interface{})

Source from the content-addressed store, hash-verified

306}
307
308func ErrorNonStringKeyFound(key interface{}) error {
309 return errors.WithStack(&errors.Error{
310 Kind: ErrNonStringKeyFound,
311 Message: fmt.Sprintf("non string key found: %s", s.ObjFlat(key)),
312 })
313}
314
315func ErrorInvalidPrimitiveType(provided interface{}, allowedType PrimitiveType, allowedTypes ...PrimitiveType) error {
316 allAllowedTypes := append([]PrimitiveType{allowedType}, allowedTypes...)

Callers 1

validateInterfaceMapFunction · 0.85

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected