Skip to content

Commit c8fb45d

Browse files
committed
Update operator error messages (#931)
(cherry picked from commit 3f61377)
1 parent 183777c commit c8fb45d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/cmd/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func ErrorFailedToConnectOperator(originalError error, operatorURL string) error
144144

145145
return errors.WithStack(&errors.Error{
146146
Kind: ErrFailedToConnectOperator,
147-
Message: fmt.Sprintf("%sfailed to connect to the operator%s, run `cortex configure` if you need to update the operator endpoint, run `cortex cluster info` to show your operator endpoint", originalErrMsg, operatorURLMsg),
147+
Message: fmt.Sprintf("%sfailed to connect to the operator%s; run `cortex configure` if you need to update the operator endpoint, `cortex cluster info` to show your operator endpoint, or `cortex cluster up` to create a new cluster", originalErrMsg, operatorURLMsg),
148148
})
149149
}
150150

pkg/operator/operator/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const (
5656
func ErrorCortexInstallationBroken() error {
5757
return errors.WithStack(&errors.Error{
5858
Kind: ErrCortexInstallationBroken,
59-
Message: "cortex is out of date, or not installed properly on your cluster; run `cortex cluster update`",
59+
Message: "cortex is out of date or not installed properly; run `cortex cluster update`, or spin down your cluster with `cortex cluster down` and create a new one with `cortex cluster up`",
6060
})
6161
}
6262

0 commit comments

Comments
 (0)