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

Function ErrorCannotBeEmptyOrNull

pkg/lib/configreader/errors.go:379–388  ·  view source on GitHub ↗
(isRequired bool)

Source from the content-addressed store, hash-verified

377}
378
379func ErrorCannotBeEmptyOrNull(isRequired bool) error {
380 msg := "cannot be empty or null"
381 if !isRequired {
382 msg = "cannot be empty or null (specify a value, or remove the key to use the default value)"
383 }
384 return errors.WithStack(&errors.Error{
385 Kind: ErrCannotBeEmptyOrNull,
386 Message: msg,
387 })
388}
389
390func ErrorCannotBeEmpty() error {
391 return errors.WithStack(&errors.Error{

Callers 5

StructFunction · 0.85
StructListFunction · 0.85
InterfaceStructFunction · 0.85
InterfaceStructListFunction · 0.85
StructFromStringMapFunction · 0.85

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected