Hi, I'm using CGI:Application version 3.1. The load_tmpl() method calls HTML::Template which croaks when the specified template can't be found. This has the undesirable behavior of returning a server error to the browser.
I'd like to trap this error and handle it gracefully. I'm thinking about overriding load_tmpl() and wrapping it in an eval block...etc.
Has anyone else had this idea for dealing with this issue? How do you handle this issue?
Cheers
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
In reply to CGI::Application/HTML::Template error handling by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |