Skip to content

Commit

Permalink
Improve error message (#185)
Browse files Browse the repository at this point in the history
* Improve error message
  • Loading branch information
Christina-Kang committed Feb 21, 2019
1 parent 18c7ed3 commit d6afc92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit d6afc92

Please sign in to comment.