Show More
@@ -192,8 +192,11 b' def make_not_found_view(config):' | |||||
192 | pylons_app = VCSMiddleware( |
|
192 | pylons_app = VCSMiddleware( | |
193 | pylons_app, settings, appenlight_client, registry=config.registry) |
|
193 | pylons_app, settings, appenlight_client, registry=config.registry) | |
194 |
|
194 | |||
195 | # Add an error handling middleware to convert errors from the old pylons |
|
195 | # The pylons app is executed inside of the pyramid 404 exception handler. | |
196 | # app into a proper error page response. |
|
196 | # Exceptions which are raised inside of it are not handled by pyramid | |
|
197 | # again. Therefore we add a middleware that invokes the error handler in | |||
|
198 | # case of an exception or error response. This way we return proper error | |||
|
199 | # HTML pages in case of an error. | |||
197 | reraise = (settings.get('debugtoolbar.enabled', False) or |
|
200 | reraise = (settings.get('debugtoolbar.enabled', False) or | |
198 | rhodecode.disable_error_handler) |
|
201 | rhodecode.disable_error_handler) | |
199 | pylons_app = PylonsErrorHandlingMiddleware( |
|
202 | pylons_app = PylonsErrorHandlingMiddleware( |
General Comments 0
You need to be logged in to leave comments.
Login now