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