diff --git a/kallithea/controllers/error.py b/kallithea/controllers/error.py --- a/kallithea/controllers/error.py +++ b/kallithea/controllers/error.py @@ -41,11 +41,8 @@ log = logging.getLogger(__name__) class ErrorController(BaseController): """Generates error documents as and when they are required. - The ErrorDocuments middleware forwards to ErrorController when error + The errorpage middleware renders /error/document when error related status codes are returned from the application. - - This behavior can be altered by changing the parameters to the - ErrorDocuments middleware in your config/middleware.py file. """ def _before(self, *args, **kwargs): diff --git a/kallithea/controllers/root.py b/kallithea/controllers/root.py --- a/kallithea/controllers/root.py +++ b/kallithea/controllers/root.py @@ -31,5 +31,5 @@ class RootController(RoutedController, B def __init__(self): self.mapper = make_map(config) - # the following assignment hooks in error handling + # The URL '/error/document' (the default TG errorpage.path) should be handled by ErrorController.document self.error = ErrorController()