Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix okteto error message #1951

Merged
merged 2 commits into from
Nov 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ var (
ErrCommandFailed = errors.New("command execution failed")

// ErrNotLogged is raised when we can't get the user token
ErrNotLogged = "your token is invalid. Please run 'okteto context %s' and try again"
ErrNotLogged = "your token is invalid. Please run 'okteto context use %s' and try again"

// ErrNotOktetoCluster is raised when we a command is only available on an okteto cluster
ErrNotOktetoCluster = fmt.Errorf("user is not logged in okteto cluster. Please run 'okteto context' and try again")
ErrNotOktetoCluster = fmt.Errorf("user is not logged in okteto cluster. Please run 'okteto context use' and select your context")

// ErrNotFound is raised when an object is not found
ErrNotFound = fmt.Errorf("not found")
Expand Down