cli icon indicating copy to clipboard operation
cli copied to clipboard

Default support of any error code

Open Polo2 opened this issue 2 years ago • 1 comments

Following https://github.com/bump-sh/cli/pull/465,

We noticed that, if Bump.sh API returned a new HTTP error code (for example 402), currently it's necessary to add specific code to support this 402 status error, available only with a release of the CLI.

It could be nice to add a default treatment of any HTTP error code, to make sure any error from Bump.sh API is 'understood' by CLI, and that provided error message (with JSON) is displayed.

Polo2 avatar May 25 '23 15:05 Polo2

That's the whole point of the 400 HTTP code and this (already handled) error treatment in the CLI.

paulRbr avatar May 26 '23 07:05 paulRbr