about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-06-21 19:22:46 +0200
committerRalf Jung <post@ralfj.de>2019-06-21 19:22:46 +0200
commite10012d037a124efd6cde026d3562f7bb7b1dbf6 (patch)
treed77cf4bee2786b0dcf7c82a1241a654f1476478e
parent8ceab3218ed277ec822e72cde9b06bfd53549dc2 (diff)
downloadrust-e10012d037a124efd6cde026d3562f7bb7b1dbf6.tar.gz
rust-e10012d037a124efd6cde026d3562f7bb7b1dbf6.zip
show HTTP error body
-rwxr-xr-xsrc/tools/publish_toolstate.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/publish_toolstate.py b/src/tools/publish_toolstate.py
index 5c6d91a9c43..9f196a219cc 100755
--- a/src/tools/publish_toolstate.py
+++ b/src/tools/publish_toolstate.py
@@ -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}"