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

Unified Diff: rietveld.py

Issue 1387833002: Print response from the server on HTTP errors from Rietveld (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index bf06f31508c6252d8cc0942f2ab2bfd97e82edc5..c24ba4d3c2872508ce3d8453ea3e7fe8906bd7bd 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -449,6 +449,9 @@ class Rietveld(object):
raise
# If reaching this line, loop again. Uses a small backoff.
time.sleep(min(10, 1+retry*2))
+ except urllib2.HTTPError as e:
+ print 'Request to %s failed: %s' % (e.geturl(), e.read())
+ raise
finally:
upload.ErrorExit = old_error_exit
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698