Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 88d9f8b

Browse files
committed
Add comments to explain error codes
1 parent 238daee commit 88d9f8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cc/services/github_pull_requests.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def receive_test
2929
http_post(base_status_url("0" * 40))
3030

3131
rescue HTTPError => ex
32-
if ex.status == 422
32+
if ex.status == 422 # response message: "No commit found for SHA"
3333
{ ok: true, message: "OAuth token is valid" }
34-
else ex.status == 401
34+
else ex.status == 401 # response message: "Bad credentials"
3535
{ ok: false, message: ex.message }
3636
end
3737
rescue => ex

0 commit comments

Comments
 (0)