Skip to content

Commit

Permalink
Give diagnostics for template processing problems via WRE::File.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Jan 6, 2012
1 parent f62fd7c commit f56453a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wre/lib/WRE/File.pm
Expand Up @@ -348,7 +348,9 @@ sub processTemplate {

# process the template
my $output = undef;
$template{$refId}->process($input, $var, \$output);
unless ($template{$refId}->process($input, $var, \$output)) {
warn $template{$refId}->error;
}
return \$output;
}

Expand Down

0 comments on commit f56453a

Please sign in to comment.