[omd-commits] OMD Git: omd: added die to TT process

git version control git at mathias-kettner.de
Fri Jul 4 11:00:59 CEST 2014


Module:   omd
Branch:   master
Commit:   4de5eef149b0934520dd10ca8b89b31ac593961b
URL:      http://omdistro.org/projects/omd/repository/revisions/4de5eef149b0934520dd10ca8b89b31ac593961b

Author:   Simon Meggle <simon.meggle at consol.de>
Date:     Fri Jul  4 07:41:54 2014 +0200
Commiter: Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Fri Jul  4 11:00:52 2014 +0200

added die to TT process

---

 packages/notifications-tt/notify-by-email.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/notifications-tt/notify-by-email.pl b/packages/notifications-tt/notify-by-email.pl
index f7a66e9..bda7076 100755
--- a/packages/notifications-tt/notify-by-email.pl
+++ b/packages/notifications-tt/notify-by-email.pl
@@ -49,7 +49,7 @@ sub process_template {
 	}
 	close FILE;
 	my $template = Template->new({PRE_CHOMP => 1, POST_CHOMP => 0, EVAL_PERL => 1});
-	$template->process(\$data, \%macro, \$output);
+	$template->process(\$data, \%macro, \$output) or die Template->error;
 	print $output if $verbose;
 	send_mail();
 }



More information about the omd-commits mailing list