UpCloudLtd / upcloud-cli

UpCloud command line client (upctl)
https://upcloudltd.github.io/upcloud-cli/
MIT License
29 stars 7 forks source link

fix: print cleaner error message if authentication failed #249

Closed kangasta closed 1 year ago

kangasta commented 1 year ago

Missing credentials

$ upctl server show asd
Error: user credentials not found, these must be set in config file (used /Users/kangasta/.config/upctl.yaml) or via environment variables
$ echo $?
102

Invalid credentials

$ upctl server show asd
Error: invalid user credentials, authentication failed using the given username and password
$ echo $?
103