nodesource / ncm-ci

NCM for CICD systems
https://nodesource.com/products/certified-modules
MIT License
8 stars 2 forks source link

Handle invalidated tokens #14

Closed bnb closed 6 years ago

bnb commented 6 years ago

Currently, if a token is regenerated (and therefore invalidated), the CLI doesn't respond with a very happy message:

image

Reproduction steps:

pmuellr commented 6 years ago

see also: #17 - check token permissions before doing anything

pmuellr commented 6 years ago

In general any kind of auth error generates pretty ugly walls of JSON messages / stack traces.

For any of these errors, we by default should be to just display an error message, hopefully relevant to the customer.

Probably want a --verbose option or such to allow users to get the wall of text, so they can send it to us.

juliangruber commented 6 years ago

https://github.com/nodesource/ncm-ci/issues/17#issuecomment-425326260