MCPcopy Create free account
hub / github.com/cortexlabs/cortex / ErrorIsNotMultiple

Function ErrorIsNotMultiple

pkg/lib/configreader/errors.go:301–306  ·  view source on GitHub ↗
(provided interface{}, multiple interface{})

Source from the content-addressed store, hash-verified

299}
300
301func ErrorIsNotMultiple(provided interface{}, multiple interface{}) error {
302 return errors.WithStack(&errors.Error{
303 Kind: ErrIsNotMultiple,
304 Message: fmt.Sprintf("%s is not a multiple of %s", s.UserStr(provided), s.UserStr(multiple)),
305 })
306}
307
308func ErrorNonStringKeyFound(key interface{}) error {
309 return errors.WithStack(&errors.Error{

Callers 1

DurationParserFunction · 0.85

Calls 2

WithStackFunction · 0.92
UserStrMethod · 0.45

Tested by

no test coverage detected