Hi,
On Tuesday 10 September 2002 02:23, Kenny Smith wrote:
> Hi all,
>
> I posted this before, but I wanted to throw it out there again...
>
> Is the only way to catch the internal H::T errors (like "attempt to set
> parameter 'extra_urls' with a scalar - parameter is not a TMPL_VAR!") by
> doing all of my H::T inside an eval and checking the magic error variables?
I have the following at the very beginning of the instance script (eg.
'my_application.cgi') of my CGI::Application / H::T apps. It causes all
errors to be written to a logfile in my directory tree instead of to the
webserver's log or the browser.
#
# Use local logfile
#
BEGIN {
use CGI::Carp qw(carpout);
my $log = "errorlog.txt"; # logfile in cwd
open(LOG, ">>$log") or die "Cannot write to log $log: $!";
carpout(LOG);
}
HTH,
Martijn
--
+----------------------------------+
Martijn van den Burg
ASML, CS PPC Inform@tion Systems
Voice: +31 (0)40 268 3856
+----------------------------------+
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users