aboutsummaryrefslogtreecommitdiffstats
path: root/mktreasurer
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-17 23:07:50 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-17 23:07:50 +0000
commit8e224713778885b60eaaeb69263bbf0a80a6b266 (patch)
tree62e939235807b43517841ff3fa42d28112f21a14 /mktreasurer
parent4a959e9f97dc67c4d4a78ee6516c564e5d952181 (diff)
downloadmgatres-8e224713778885b60eaaeb69263bbf0a80a6b266.tar
mgatres-8e224713778885b60eaaeb69263bbf0a80a6b266.tar.gz
mgatres-8e224713778885b60eaaeb69263bbf0a80a6b266.tar.bz2
mgatres-8e224713778885b60eaaeb69263bbf0a80a6b266.tar.xz
mgatres-8e224713778885b60eaaeb69263bbf0a80a6b266.zip
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
Diffstat (limited to 'mktreasurer')
-rwxr-xr-xmktreasurer3
1 files changed, 2 insertions, 1 deletions
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";
}
}