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 reporting on user errors #3

frosch123 opened this issue Apr 22, 2020 · 0 comments

Improve reporting on user errors #3

frosch123 opened this issue Apr 22, 2020 · 0 comments


Copy link

@frosch123 frosch123 commented Apr 22, 2020

When the user specifies incorrect/insufficient options, the CLI usually prints a long backtrace.
Maybe add --verbose option to print backtraces, and hide them by default.


When --api-url is wrong/missing:

  • about 60 lines of python backtrace
  • aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host ssl:default [Name or service not known]

When uploading zero files:
.env/bin/python -m bananas_cli --api-url upload --version "foobar"

  • 25 lines of python backtrace
  • File ".../bananas_cli/commands/", line 31, in upload
    parts = files[0].split("/")[:-1]
    IndexError: tuple index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.