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

Function ErrorAPIVersionMismatch

pkg/operator/endpoints/errors.go:42–47  ·  view source on GitHub ↗
(operatorVersion string, clientVersion string)

Source from the content-addressed store, hash-verified

40)
41
42func ErrorAPIVersionMismatch(operatorVersion string, clientVersion string) error {
43 return errors.WithStack(&errors.Error{
44 Kind: ErrAPIVersionMismatch,
45 Message: fmt.Sprintf("your CLI version (%s) doesn't match your Cortex operator version (%s); please update your cluster by following the instructions at https://docs.cortex.dev, or update your CLI (pip install cortex==%s)", clientVersion, operatorVersion, operatorVersion),
46 })
47}
48
49func ErrorHeaderMissing(header string) error {
50 return errors.WithStack(&errors.Error{

Callers 1

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected