Repository: mesos Updated Branches: refs/heads/master 57ab82012 -> df774c079
Updated ReviewBot to print HTTP response body for HTTP errors. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/df774c07 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/df774c07 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/df774c07 Branch: refs/heads/master Commit: df774c079f96b5f274a9cd11b500540f494f2142 Parents: 57ab820 Author: Vinod Kone <[email protected]> Authored: Thu Jan 21 13:31:00 2016 -0800 Committer: Vinod Kone <[email protected]> Committed: Thu Jan 21 13:31:00 2016 -0800 ---------------------------------------------------------------------- support/verify_reviews.py | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/df774c07/support/verify_reviews.py ---------------------------------------------------------------------- diff --git a/support/verify_reviews.py b/support/verify_reviews.py index 2315c6e..39661d7 100755 --- a/support/verify_reviews.py +++ b/support/verify_reviews.py @@ -64,6 +64,9 @@ def api(url, data=None): urllib2.install_opener(opener) return json.loads(urllib2.urlopen(url, data=data).read()) + except urllib2.HTTPError as e: + print "Error handling URL %s: %s (%s)" % (url, e.reason, e.read()) + exit(1) except urllib2.URLError as e: print "Error handling URL %s: %s" % (url, e.reason) exit(1)
