From 2f7665a216be089fafd15e8a412aef70dc44b1aa Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 24 Sep 2014 09:04:13 -0700 Subject: 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} --- styleguide/c++/chromium-cpp/main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'styleguide/c++/chromium-cpp') 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) -- cgit v1.1