diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-02-11 12:41:27 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-02-11 12:53:58 +0000 |
commit | 1ce2492256af256e1076f0e88402e8e1d8a271f2 (patch) | |
tree | b2321af5f35f99e6f9e1ec8be3d0c257302de404 /distbuild/build_controller.py | |
parent | 5bf5bb1d8f719ac6759bbe8affac7665e24acb1e (diff) | |
download | morph-1ce2492256af256e1076f0e88402e8e1d8a271f2.tar.gz |
distbuild: Give more detail when requests to cache-server fail
Let the end-user see the URL that distbuild was attempting to talk to,
so they can more easily spot configuration errors. It's kind of silly
to say 'HTTP request failed' without saying where the request was going.
Diffstat (limited to 'distbuild/build_controller.py')
-rw-r--r-- | distbuild/build_controller.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/distbuild/build_controller.py b/distbuild/build_controller.py index aeeda417..6752f400 100644 --- a/distbuild/build_controller.py +++ b/distbuild/build_controller.py @@ -361,8 +361,9 @@ class BuildController(distbuild.StateMachine): http_status_code = event.msg['status'] if http_status_code != httplib.OK: - self.fail('Failed to annotate build graph: http request got %d: %s' - % (http_status_code, event.msg['body'])) + self.fail('Failed to annotate build graph: HTTP request to %s got ' + '%d: %s' % (self._artifact_cache_server, + http_status_code, event.msg['body'])) return cache_state = json.loads(event.msg['body']) |