I want to have a custom styled page for my 404 errors, so that when I do 
raise(404, 'bad values') it returns a nicely styled page. I have placed the 
following line in my routes.py

routes_onerror = [('myapp/404', '/myapp/default/custom_404.html')]

but I don't know how to access the error message itself ('bad values' in 
this case) within the custom page. It doesn't seem to exist in the request 
object?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/19f0ebd2-1acc-453d-8133-8c53da8a9fad%40googlegroups.com.

Reply via email to