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

Improve error message #185

Merged
merged 3 commits into from
Feb 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Unreleased
- Change serializers, and change formatting of sfctl container invoke-api output (#179)
- Update Knack version to 0.5.2 (#181)
- Update sfmergeutility version to 0.1.6 (#183)
- Improve error message (#185)

7.0.2
----------
Expand Down
8 changes: 5 additions & 3 deletions src/sfctl/apiclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ def create(_):
endpoint = client_endpoint()

if not endpoint:
raise CLIError("Connection endpoint not found. "
"Before running sfctl commands, connect to a cluster using "
"the 'sfctl cluster select' command.")
raise CLIError('Connection endpoint not found. '
'Before running sfctl commands, connect to a cluster using '
'the "sfctl cluster select" command. '
'If you are seeing this message on Linux after already selecting a cluster, '
'you may need to run the command with sudo.')

no_verify = no_verify_setting()

Expand Down