Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: CGI Error Reporting

by Gangabass (Vicar)
on Aug 18, 2011 at 02:46 UTC ( #920837=note: print w/ replies, xml ) Need Help??


in reply to CGI Error Reporting

I think you can use set_die_handler with some global variable in the code to enable/disable Carp messages.

Replies are listed 'Best First'.
Re^2: CGI Error Reporting
by agronbach (Novice) on Aug 18, 2011 at 17:00 UTC

    I looked into that Carp's options, and also took some private messages into account, and I am just going to fork much earlier in my code, and run all the code that can throw fatal errors in the child process, and report it all the same way.

    Basically I have to report when the files being analyzed cannot be found in a way that the user understands. Carp doesn't do this as nicely as I can, so I am going to stop using it at this point except for debugging initial syntax errors.

    Thanks for the wisdom!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-07-23 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (221 votes). Check out past polls.