From 8e224713778885b60eaaeb69263bbf0a80a6b266 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 17 May 2013 23:07:50 +0000 Subject: mktreasurer: die in case of error processing template git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8325 5b7c3c08-40e5-403b-9995-ace06908e4af --- mktreasurer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mktreasurer') diff --git a/mktreasurer b/mktreasurer index 8501435..1f1614b 100755 --- a/mktreasurer +++ b/mktreasurer @@ -177,7 +177,8 @@ sub process_template { my ($template, $src, $vars, $dest) = @_; foreach my $extension (@{$config->{output_format}}) { next unless -f "$config->{tmpl_dir}/$src.$extension"; - $template->process("$src.$extension", $vars, "$dest.$extension"); + $template->process("$src.$extension", $vars, "$dest.$extension") + || die $template->error(), "\n"; } } -- cgit v1.2.1