Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Catching Template Toolkit Errors

by GrandFather (Saint)
on Mar 19, 2007 at 03:02 UTC ( [id://605413]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use CGI::Carp qw(fatalsToBrowser); # Remove for production code
    
  2. or download this
    sub showError {
        my $err = shift;
    ...
        print end_html();
        exit 1;
    }
    
  3. or download this
    eval {
        #troublesome stuff here
    };
    
    ShowError ($@) if $@;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found