| 264 | } |
| 265 | |
| 266 | func 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 | |
| 273 | func ErrorAPINameMustBeProvided() error { |
| 274 | return errors.WithStack(&errors.Error{ |