Fragment of my middleware.py:
if asbool(config["debug"]):
    app = StatusCodeRedirect(app)
else:
    app = StatusCodeRedirect(app, [400, 403, 404, 405, 500, 503])

Error document controller:
original_response = request.environ.get("pylons.original_response")
c.message = literal(original_response.status)
return render("/error.html")

How to display exception message instead of original response (like "500 
Internal Server Error")?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/OYXGcx_xzIQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to