Skip to content

cmd/org: show a more useful error message if global config doesn't exist#128

Merged
fatih merged 2 commits intomainfrom
fatih/org-show-better-message
Mar 29, 2021
Merged

cmd/org: show a more useful error message if global config doesn't exist#128
fatih merged 2 commits intomainfrom
fatih/org-show-better-message

Conversation

@fatih
Copy link
Member

@fatih fatih commented Mar 29, 2021

closes: https://github.com/planetscale/project-big-bang/issues/166

before

$ pscale org show
Error: open /Users/fatih/.config/planetscale/config.yml: no such file or directory

after

$ pscale org show
Error: not authenticated, please authenticate with: "pscale auth login"

@fatih fatih requested a review from a team as a code owner March 29, 2021 13:28
Copy link
Contributor

@iheanyi iheanyi left a comment

Choose a reason for hiding this comment

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

LGTM!

@fatih fatih enabled auto-merge March 29, 2021 14:40
@fatih fatih merged commit 42f7311 into main Mar 29, 2021
@fatih fatih deleted the fatih/org-show-better-message branch March 29, 2021 14:41
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.

2 participants