Added a docstring to mgoblin_error_middleware

This commit is contained in:
Christopher Allan Webber 2011-08-21 00:24:47 -05:00
parent 9ac7371712
commit ae72c63814

View File

@ -49,5 +49,12 @@ MGOBLIN_ERROR_MESSAGE = """\
def mgoblin_error_middleware(app, global_conf, **kw):
"""
MediaGoblin wrapped error middleware.
This is really just wrapping the error middleware from Paste.
It should take all of Paste's default options, so see:
http://pythonpaste.org/modules/exceptions.html
"""
kw['error_message'] = MGOBLIN_ERROR_MESSAGE
return make_error_middleware(app, global_conf, **kw)