From e90b02b98382872bd43097b9b146a9b00ca3171b Mon Sep 17 00:00:00 2001 From: "Tim Bunce (via RT)" Date: Wed, 25 Nov 2009 03:02:24 -0800 Subject: perlbug reports "Message sent" even when it hasn't perlbug doesn't check the return status of Mail::Send and so reports "Message sent" even if it hasn't: --- utils/perlbug.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/perlbug.PL b/utils/perlbug.PL index 8862a9447c..c015e25510 100644 --- a/utils/perlbug.PL +++ b/utils/perlbug.PL @@ -1134,7 +1134,7 @@ sub _send_message_mailsend { open(REP, "<$filename") or die "Couldn't open '$filename': $!\n"; while () { print $fh $_ } close(REP) or die "Error closing $filename: $!"; - $fh->close; + $fh->close or die "Error sending mail: $!"; print "\nMessage sent.\n"; } -- cgit v1.2.1