mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vinodk...@apache.org
Subject mesos git commit: Updated ReviewBot to print HTTP response body for HTTP errors.
Date Thu, 21 Jan 2016 21:32:39 GMT
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 <vinodkone@gmail.com>
Authored: Thu Jan 21 13:31:00 2016 -0800
Committer: Vinod Kone <vinodkone@gmail.com>
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)


Mime
View raw message