[Maypole] catching DB errors

Dana Hudes dhudes@hudes.org
Mon, 24 Jan 2005 13:48:01 -0500 (EST)


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)