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

Function ErrorDeployFromTopLevelDir

cli/cmd/errors.go:266–271  ·  view source on GitHub ↗
(genericDirName string)

Source from the content-addressed store, hash-verified

264}
265
266func ErrorDeployFromTopLevelDir(genericDirName string) error {
267 return errors.WithStack(&errors.Error{
268 Kind: ErrDeployFromTopLevelDir,
269 Message: fmt.Sprintf("cannot deploy from your %s directory - when deploying your API, cortex sends all files in your project directory (i.e. the directory which contains cortex.yaml) to your cluster (see https://docs.cortex.dev/v/%s/); therefore it is recommended to create a subdirectory for your project files", genericDirName, consts.CortexVersionMinor),
270 })
271}
272
273func ErrorAPINameMustBeProvided() error {
274 return errors.WithStack(&errors.Error{

Callers 1

deploy.goFile · 0.85

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected