summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e067f2d)
raw | patch | inline | side by side (parent: e067f2d)
author | Holger Weiss <holger@zedat.fu-berlin.de> | |
Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100) | ||
committer | Holger Weiss <holger@zedat.fu-berlin.de> | |
Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100) |
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.
don't abort if it fails, just spit out a warning.
tools/git-notify | patch | blob | history |
diff --git a/tools/git-notify b/tools/git-notify
index 548f7da97cb80920b45c68bcfc03f4944bc0a6eb..265f37b190b1acffda7bfe8c208ffe8f84cb9d4d 100755 (executable)
--- a/tools/git-notify
+++ b/tools/git-notify
}
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: $?";
}
}