Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: gerrit_util.py

Issue 254133007: trychange.py: Gerrit protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: PostTryjob Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/trychange_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gerrit_util.py
diff --git a/gerrit_util.py b/gerrit_util.py
index 1ae1101bbd179db79b7e8c437062b71fe2de0cda..c8d838c7eaced6565fbb08ec12991cac2e37ba6d 100755
--- a/gerrit_util.py
+++ b/gerrit_util.py
@@ -140,7 +140,8 @@ def ReadHttpResponse(conn, expect_status=200, ignore_404=True):
if ignore_404 and response.status == 404:
return StringIO()
if response.status != expect_status:
- raise GerritError(response.status, response.reason)
+ reason = '%s: %s' % (response.reason, response.read())
+ raise GerritError(response.status, reason)
return StringIO(response.read())
« no previous file with comments | « no previous file | tests/trychange_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698