mapbox / mapbox/tilesets-cli

Better warning on bad input

Open
#78 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation ux
Dominant language
Python
Stars
141
Forks
27
PR merge metrics
No merged PRs in 30d

Description

If the path to a file is incorrect the response from the CLI prints out a long stack trace:

Screen Shot 2020-07-08 at 4 59 28 PM

And ends with:

Screen Shot 2020-07-08 at 4 59 47 PM

Could the CLI validate the input argument first and display a clearer message to the user

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the CLI argument handling and reproduce the behavior with an incorrect file path. Trace where the input is processed and where the stack trace is emitted. Done means invalid paths are rejected with a clear user-facing warning instead of the long stack trace.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.