Log current error, and send error output to client if possible
(self)
| 383 | exc_info = None |
| 384 | |
| 385 | def handle_error(self): |
| 386 | """Log current error, and send error output to client if possible""" |
| 387 | self.log_exception(sys.exc_info()) |
| 388 | if not self.headers_sent: |
| 389 | self.result = self.error_output(self.environ, self.start_response) |
| 390 | self.finish_response() |
| 391 | # XXX else: attempt advanced recovery techniques for HTML or text? |
| 392 | |
| 393 | def error_output(self, environ, start_response): |
| 394 | """WSGI mini-app to create error output |
no test coverage detected