Merge pull request #5714 from minrk/warn-api-errors

log error message when API requests fail
This commit is contained in:
Thomas Kluyver 2014-04-25 12:18:40 -07:00
commit c4e2468c48

View File

@ -287,6 +287,7 @@ def json_errors(method):
except web.HTTPError as e:
status = e.status_code
message = e.log_message
self.log.warn(message)
self.set_status(e.status_code)
self.finish(json.dumps(dict(message=message)))
except Exception: