gothub icon indicating copy to clipboard operation
gothub copied to clipboard

How to know when github returns a 422

Open linuxgurugamer opened this issue 7 years ago • 1 comments

Right now when github returns an error, the return code from gothub is 1

It would be nice if there was some way to know (other than parsing the output) what the github code was

I was hoping that the return code could be set to the github code

linuxgurugamer avatar Oct 26 '17 12:10 linuxgurugamer

Yes, a more detailed return code would be really useful; I now regularly get

error: github did not respond with 200 OK but with 403 Forbidden

and if the script tries to retry in that situation, the situation persists. Being able to spot that error would be really useful.

mfonville avatar Mar 08 '18 09:03 mfonville