Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Mason error capturing

by rdfield (Priest)
on Feb 02, 2005 at 16:18 UTC ( #427314=note: print w/ replies, xml ) Need Help??


in reply to Mason error capturing

(Note: untested) Try setting $m->error_mode to fatal. The errors should end up in the server log.

rdfield


Comment on Re: Mason error capturing
Select or Download Code
Re^2: Mason error capturing
by inblosam (Monk) on Feb 02, 2005 at 16:50 UTC
    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
      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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://427314]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-09-02 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (22 votes), past polls