inblosam has asked for the wisdom of the Perl Monks concerning the following question:
I am using HTML::Mason for my sites and I love it. I am now going live with a site and turned the error handling to "fatal" so it doesn't show my users the scary errors when they occur, and instead they see a custom Error 500 page. Now I am facing the issue of not being able to get to these errors so I can fix them. I would like to:
Capture the error and put it in an HTML comment on the error 500 page, so I can just "view source" and see it.
Capture the error in the error_log file, which it doesn't seem to be doing right now.
How do I capture the error message? I tried dumping $r and saw a ton of stuff, but nothing that looked like the error messages I had been getting that were so informative before.
Thanks!
Michael Jensen
How do I capture the error message? I tried dumping $r and saw a ton of stuff, but nothing that looked like the error messages I had been getting that were so informative before.
Thanks!
Michael Jensen
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mason error capturing
by rdfield (Priest) on Feb 02, 2005 at 16:18 UTC | |
by inblosam (Monk) on Feb 02, 2005 at 16:50 UTC | |
by rdfield (Priest) on Feb 02, 2005 at 17:05 UTC | |
Re: Mason error capturing
by martell (Hermit) on Feb 02, 2005 at 22:51 UTC | |
Re: Mason error capturing
by Jenda (Abbot) on Feb 06, 2005 at 00:14 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom