in reply to Re: Mason error capturing
in thread Mason error capturing

As I stated, I already set my error mode to fatal. I noticed the errors are now showing up in my error log, so that point is settled.

Still need some help capturing the error on the actual Error page to hide in HTML comments...anyone???


Michael Jensen

Replies are listed 'Best First'.
Re^3: Mason error capturing
by rdfield (Priest) on Feb 02, 2005 at 17:05 UTC
    The docs state that the error mode is either fatal or output with no in between. I guess you could sub-class the constructor and re-write the fatals sub to do both.

    The problem, I guess, is that the error is (usually) during the interpreter phase, and doesn't get anywhere near your code, so you can't do anything too fancy. You could, of course, write a PerlLogHandler module that lets you know when an error's occured via email or somesuch.

    rdfield