diff --git a/webtools/PLIF/compile-templates.pl b/webtools/PLIF/compile-templates.pl index 543a7123a14..8b2bec2a80d 100644 --- a/webtools/PLIF/compile-templates.pl +++ b/webtools/PLIF/compile-templates.pl @@ -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 ) };