MCPcopy
hub / github.com/cortexlabs/cortex / ErrorEnvironmentNotSet

Function ErrorEnvironmentNotSet

cli/cmd/errors.go:95–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func ErrorEnvironmentNotSet() error {
96 return errors.WithStack(&errors.Error{
97 Kind: ErrEnvironmentNotSet,
98 Message: "no environment was provided and the default environment is not set; specify the environment to use via the `-e/--env` flag, or run `cortex env default` to set the default environment",
99 })
100}
101
102func ErrorEnvironmentNotFound(envName string) error {
103 return errors.WithStack(&errors.Error{

Callers 1

getEnvFromFlagFunction · 0.85

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected