Re: [Maypole] catching DB errors

From: Dana Hudes (dhudes at hudes.org)
Date: Mon Jan 24 2005 - 18:48:01 GMT


On Mon, 24 Jan 2005, Toby Corkindale wrote:

> Hi,
> The DB errors currently go to the apache error_log, and the user sees a 404
> Page not found error.
>
> It'd be nice to present a page saying "Sorry you hit an error:" and then
> displays the error message, at least, for our testing purposes.
>
> What would be the best way to go about this in Maypole?

not the most user-friendly but have you tried CGI::Carp with the
fatalstoBrowser option...at least your
error message will be shown to the user instead of a generic error page
(which s/b 500 server internal error not 404 page not found)

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT