copy-github-labels-cli icon indicating copy to clipboard operation
copy-github-labels-cli copied to clipboard

Improve error handling

Open jvandemo opened this issue 9 years ago • 1 comments

Feedback from @sindresorhus:

I think these FAQs should rather be actually improved errors instead of documenting bad errors

Link: https://twitter.com/sindresorhus/status/655822910758588416

jvandemo avatar Oct 19 '15 08:10 jvandemo

When an error is encountered during a call to the GitHub API, the API returns just a simple string like:

  • Bad Credentials
  • Validation Failed
  • etc...

without any context of the label.

The CLI relays this information but the quality of the feedback is too poor to provide consumers with enough insights to clearly see what's happening:

Ideally we should be able to display:

  • which label failed
  • what error occurred

to improve developer experience.

jvandemo avatar Oct 19 '15 09:10 jvandemo