Report parser errors when trying to compile the templates.
git-svn-id: svn://10.0.0.236/trunk@153223 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c8d557d93c
commit
717a9c41c3
@ -66,7 +66,10 @@ sub process {
|
||||
sub compile {
|
||||
my $data = shift;
|
||||
|
||||
my $content = Template::Parser->new()->parse($data);
|
||||
my $parser = Template::Parser->new();
|
||||
my $content = $parser->parse($data);
|
||||
|
||||
die $parser->error() unless $content;
|
||||
|
||||
my ($block, $defblocks, $metadata) = @$content{ qw( BLOCK DEFBLOCKS METADATA ) };
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user