Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 139189b

Browse files
committed
Merge branch 'bc/send-email-ssl-die-message-fix'
When send-email comes up with an error message to die with upon failure to start an SSL session, it tried to read the error string from a wrong place. * bc/send-email-ssl-die-message-fix: send-email: don't call methods on undefined values
2 parents 70c87a9 + 6cb0c88 commit 139189b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ sub send_message {
12341234
if ($smtp->code == 220) {
12351235
$smtp = Net::SMTP::SSL->start_SSL($smtp,
12361236
ssl_verify_params())
1237-
or die "STARTTLS failed! ".$smtp->message;
1237+
or die "STARTTLS failed! ".IO::Socket::SSL::errstr();
12381238
$smtp_encryption = '';
12391239
# Send EHLO again to receive fresh
12401240
# supported commands

0 commit comments

Comments
 (0)