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

Conversation

jLopezbarb
Copy link
Contributor

Signed-off-by: Javier López Barba javier@okteto.com

Proposed changes

  • Change okteto context to okteto context use which is the correct way of using it

Signed-off-by: Javier López Barba <javier@okteto.com>
@jLopezbarb jLopezbarb requested a review from a team November 8, 2021 11:56

// 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 try again")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ErrNotOktetoCluster = fmt.Errorf("user is not logged in okteto cluster. Please run 'okteto context use' and try again")
ErrNotOktetoCluster = fmt.Errorf("user is not logged in okteto cluster. Please run 'okteto context' and select your context")

@codecov
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

Merging #1951 (21b1dac) into master (cee2db3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1951   +/-   ##
=======================================
  Coverage   33.42%   33.42%           
=======================================
  Files         122      122           
  Lines       13841    13841           
=======================================
  Hits         4626     4626           
  Misses       8715     8715           
  Partials      500      500           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cee2db3...21b1dac. Read the comment docs.

Signed-off-by: Javier López Barba <javier@okteto.com>
@jLopezbarb jLopezbarb merged commit 4e576ef into master Nov 9, 2021
@jLopezbarb jLopezbarb deleted the jlopezbarb/fix-ctx-error-message branch November 9, 2021 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants