mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
log error message when API requests fail
This commit is contained in:
parent
748b2c64d5
commit
f824aee955
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user