Skip to content

Commit e10012d

Browse files
committed
show HTTP error body
1 parent 8ceab32 commit e10012d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/publish_toolstate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ def update_latest(
166166
tool, create_issue_for_status, MAINTAINERS.get(tool, ''),
167167
relevant_pr_number, relevant_pr_user, pr_reviewer,
168168
)
169-
except IOError as e:
169+
except urllib2.HTTPError as e:
170170
# network errors will simply end up not creating an issue, but that's better
171171
# than failing the entire build job
172+
print("HTTPError when creating issue for status regression: {0}\n{1}".format(e, e.read()))
173+
except IOError as e:
172174
print("I/O error when creating issue for status regression: {0}".format(e))
173175
except:
174176
print("Unexpected error when creating issue for status regression: {0}"

0 commit comments

Comments
 (0)