Skip Menu |

This queue is for tickets about the Template-Toolkit CPAN distribution.

Report information
The Basics
Id: 1860
Status: resolved
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: grimoire [...] corinne.cpio.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.08
Fixed in: (no value)



Subject: Template::Exception called when file is missing
- Running perl 5.8.0 on FreeBSD 4.3, using Apache 1.3.27 and mod_perl 1.27 - If you pass the Template Toolkit a filename for a file which does not exist, when using CGI::Carp, the following error is produced: Template::Exception at /usr/local/lib/perl5/5.8.0/CGI/Carp.pm line 301 - Without CGI::Carp, the considerably more sensible error message is generated: file error - thisfiledoesnotexist.tt: not found - A similar problem exists with perl 5.6.1 - A simple script to reproduce this is attached
#!/usr/bin/perl -w use strict; use CGI::Carp; use Template; my %vars = (); my $template = Template->new() || die "$Template::ERROR\n"; $template->process('thisfiledoesnotexist.tt', \%vars) || die $template->error(), "\n";