From 9e686891791001155d535634572eb0753835e7fd Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 7 Nov 2009 02:23:32 +0100 Subject: git-notify: Don't abort if mail(1) exits non-zero As nothing in git-notify depends on the success of the mail(1) call, don't abort if it fails, just spit out a warning. --- tools/git-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/git-notify b/tools/git-notify index 548f7da9..265f37b1 100755 --- a/tools/git-notify +++ b/tools/git-notify @@ -307,7 +307,7 @@ sub mail_notification($$$@) } binmode MAIL, ":utf8"; print MAIL join("\n", @text), "\n"; - close MAIL or die $! ? "Cannot execute $mailer: $!" : "$mailer exited with status: $?"; + close MAIL or warn $! ? "Cannot execute $mailer: $!" : "$mailer exited with status: $?"; } } -- cgit v1.2.3-74-g34f1