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.