utils/github: Raise exceptions if status code != 200 or exit code is not 0
This commit is contained in:
parent
f1ab58abcc
commit
54033d320b
@ -175,7 +175,7 @@ module GitHub
|
||||
end
|
||||
|
||||
begin
|
||||
if !http_code.start_with?("2") && !status.success?
|
||||
if !http_code.start_with?("2") || !status.success?
|
||||
raise_api_error(output, errors, http_code, headers, scopes)
|
||||
end
|
||||
json = JSON.parse output
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user