Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

How to know when github returns a 422 #8

Open
linuxgurugamer opened this issue Oct 26, 2017 · 1 comment
Open

How to know when github returns a 422 #8

linuxgurugamer opened this issue Oct 26, 2017 · 1 comment

Comments

@linuxgurugamer
Copy link

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

@mfonville
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants