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

Function ErrorCortexResourceOnlyAllowed

pkg/lib/configreader/errors.go:441–446  ·  view source on GitHub ↗
(invalidStr string)

Source from the content-addressed store, hash-verified

439}
440
441func ErrorCortexResourceOnlyAllowed(invalidStr string) error {
442 return errors.WithStack(&errors.Error{
443 Kind: ErrCortexResourceOnlyAllowed,
444 Message: fmt.Sprintf("%s: only cortex resource references (which start with @) are allowed in this context", invalidStr),
445 })
446}
447
448func ErrorCortexResourceNotAllowed(resourceName string) error {
449 return errors.WithStack(&errors.Error{

Callers 1

checkOnlyCortexResourcesFunction · 0.85

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected