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

Unified Diff: styleguide/c++/chromium-cpp/main.py

Issue 598063002: chromium-cpp: Set status code on errors, so that the console can track them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: styleguide/c++/chromium-cpp/main.py
diff --git a/styleguide/c++/chromium-cpp/main.py b/styleguide/c++/chromium-cpp/main.py
index 9017296e5a22871a488c264419329e2ca5edd805..aef55ab4daaec9825b9429d1ccd11489d0984ace 100755
--- a/styleguide/c++/chromium-cpp/main.py
+++ b/styleguide/c++/chromium-cpp/main.py
@@ -33,6 +33,7 @@ class GitilesMirrorHandler(webapp2.RequestHandler):
if not contents or self.request.get('bust'):
result = urlfetch.fetch(url)
if result.status_code != 200:
+ self.response.set_status(result.status_code)
self.response.write('http error %d' % result.status_code)
return
contents = base64.b64decode(result.content)
« 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