in reply to mod_perl 2 and CGI::Carp fatalstobrowser

You'll need to get down and dirty with how you create your HTML::Mason object.

Please have a read of this link: http://www.masonhq.com/docs/manual/Admin.html#error_reporting_and_exceptions.

Specifically the link instructs that, when you create your HTML::Mason object, you must specify the error_mode option to have a value of "fatal" so that a 500 message is returned to the user with the output sent to the apache error log.

Considered by monarch: title change: Configuring HTML::Mason debugging output destination
Unconsidered by planetscape: keep votes trump edit votes ( keep:12 edit:26 reap:0 )

Replies are listed 'Best First'.
Re^2: mod_perl 2 and CGI::Carp fatalstobrowser
by jfroebe (Parson) on Aug 12, 2006 at 15:19 UTC

    yup, the writing the errors to the apache errorlog is a good alternative except when the developer isn't allowed read access to the errorlog (apache is administered by another group).

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

      Uh, you do web development work without a local install on your own desktop/laptop of the database, Apache and the rest of the neccesary environment?

      Sounds... painful. Isn't it hard to e.g. write tests if you can't separate out everything cleanly? (Or is the DB helvetes(*) large and just too much to keep locally?)

      (*) I saw people discussing in the CB that we shouldn't offend people with four letter words. If any over-sensitive people know Swedish, please let me know and I'll Google for the relevant expressions in some other language. :-)