Skip to content

Commit

Permalink
Add write error
Browse files Browse the repository at this point in the history
  • Loading branch information
f1nality committed Dec 26, 2018
1 parent d2c0d1c commit f511eeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jet_bridge/views/base/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ def write_response(self, response):
for name, value in response.header_items():
self.set_header(name, value)
self.write(response.render())

def write_error(self, status_code, **kwargs):
print(kwargs.get('exc_info'))
self.write('Error %s' % status_code)

0 comments on commit f511eeb

Please sign in to comment.