Skip to content

Commit

Permalink
show HTTP error body
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 21, 2019
1 parent 8ceab32 commit e10012d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/publish_toolstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,11 @@ def update_latest(
tool, create_issue_for_status, MAINTAINERS.get(tool, ''),
relevant_pr_number, relevant_pr_user, pr_reviewer,
)
except IOError as e:
except urllib2.HTTPError as e:
# network errors will simply end up not creating an issue, but that's better
# than failing the entire build job
print("HTTPError when creating issue for status regression: {0}\n{1}".format(e, e.read()))
except IOError as e:
print("I/O error when creating issue for status regression: {0}".format(e))
except:
print("Unexpected error when creating issue for status regression: {0}"
Expand Down

0 comments on commit e10012d

Please sign in to comment.