Look into the routes.examples.py and router.examples.py for onerror
parameters:

routes_onerror =
[
     (r'init/400', r'/init/default/
login'),
     (r'init/*', r'/init/static/
fail.html'),
     (r'*/404', r'/init/static/
cantfind.html'),
     (r'*/*', r'/init/error/
index'),
 ]

'*/*' means catch any app/any error and you can redirect to a static
page or another web2py app.



On Jun 12, 12:12 am, Luis Goncalves <[email protected]> wrote:
> Is there an easy/straightforward way to implement a "fail whale" for a
> web2py website?
>
> I've noticed strange errors (some sort of timeout) when uploading files
> (running on Amazon ec2), and of course, the site is in beta and bad things
> may happen.
>
> I'd like to have a graceful landing page the user is taken to irrespective
> of what error occurred.  Once there, the user can click to start over.
>
> It's OK to give up admin ticket tracking,  I just don't want user to see
> strange errors, whatever they may be.
>
> Thank you,
> Luis.

Reply via email to