# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
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)