Hi,
I have a template file running in a few thousands of lines. The hashref passed 
to the template contains many sub hashrefs each of which has a field called 
Type.
I am processing my template as follows
my $tt=Template->new(
        {
                TRIM=>1,
                STRICT=>1,
                RELATIVE=>1,
                DEBUG_FORMAT => '<!-- $file line $line : [% $text %] -->',
                DEBUG=>DEBUG_UNDEF,
                INCLUDE_PATH=>['config','template','./'],
                OUTPUT_PATH=>$svoutDir
        })|| die "$Template::ERROR\n";


        $tt->process($infile, $hsh,$outfile)|| die $tt->error();

This is generating an error message of "undef error - Type is undefined"
The error message would have been more helpful if it also printed the line 
number in the template file. Is this possible?
I was expecting the error message to be "undef error - template.tt line 21: [% 
Type is undefined %]"
Is there a way to get the desired error message?
Regards
Vijay
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to