Skip to content

Commit f56453a

Browse files
committedJan 6, 2012
Give diagnostics for template processing problems via WRE::File.
1 parent f62fd7c commit f56453a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎wre/lib/WRE/File.pm

+3-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,9 @@ sub processTemplate {
348348

349349
# process the template
350350
my $output = undef;
351-
$template{$refId}->process($input, $var, \$output);
351+
unless ($template{$refId}->process($input, $var, \$output)) {
352+
warn $template{$refId}->error;
353+
}
352354
return \$output;
353355
}
354356

0 commit comments

Comments
 (0)