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 API error messages #50

Open
eschwartz opened this issue Dec 10, 2019 · 1 comment
Open

Improve API error messages #50

eschwartz opened this issue Dec 10, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers usability Make dce-cli more user-friendly

Comments

@eschwartz
Copy link
Contributor

Using dce-cli v0.2.0

API error are not super user friendly:

eg.

~/$ ./dce-cli accounts list
err:  [GET /accounts][403] getAccountsForbidden ~/$ 

Proposing to:

  • Use human-readable error messages (eg, "You do you not have access to get account", or whatever)
  • Add a newline character to the end of the message, so the CLI prompt starts on a new line
@eschwartz eschwartz added good first issue Good for newcomers enhancement New feature or request usability Make dce-cli more user-friendly labels Dec 10, 2019
@eschwartz
Copy link
Contributor Author

Besides human-readable error messages, it would be nice if we have an optional way to see the entire API error response, like with a verbose log level configured, or in a log file somewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers usability Make dce-cli more user-friendly
Projects
None yet
Development

No branches or pull requests

1 participant