Closed hemanth closed 8 years ago
Good point. But the error should be thrown in dev-time
.
Should the cli
catch and throw a suitable message based on what kind of error it was, rather than dev-time
doing it?
As in dev-time
just throw the error and based on that the cli will log a suitable message.
Yes, the error Response code 403
doesn't say a lot. I think that GitHub returns the throttle limit in the headers so if the throttle limit is exceeded, it should throw new Error('throttle limit exceeded')
instead of that 403. The message can then be formatted here.
Either way, makes sense.
1.3.1
:+1:
This looks like I have exceeded the request limit, should we log something meaningful here? Say like use an auth-token?