summaryrefslogtreecommitdiffstats
path: root/styleguide/c++/chromium-cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-09-24 09:04:13 -0700
committerNico Weber <thakis@chromium.org>2014-09-24 16:04:25 +0000
commit2f7665a216be089fafd15e8a412aef70dc44b1aa (patch)
tree997a6009648ed57dc684ddd915a7cca3b920fb8b /styleguide/c++/chromium-cpp
parent8b12f969b04be8c9a8a45931665844c9515f926b (diff)
downloadchromium_src-2f7665a216be089fafd15e8a412aef70dc44b1aa.zip
chromium_src-2f7665a216be089fafd15e8a412aef70dc44b1aa.tar.gz
chromium_src-2f7665a216be089fafd15e8a412aef70dc44b1aa.tar.bz2
chromium-cpp: Set status code on errors, so that the console can track them.
BUG=none R=inferno@chromium.org Review URL: https://codereview.chromium.org/598063002 Cr-Commit-Position: refs/heads/master@{#296429}
Diffstat (limited to 'styleguide/c++/chromium-cpp')
-rwxr-xr-xstyleguide/c++/chromium-cpp/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/styleguide/c++/chromium-cpp/main.py b/styleguide/c++/chromium-cpp/main.py
index 9017296..aef55ab 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)