diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-18 11:47:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-18 11:47:27 -0700 |
commit | 139189b92eb178b6ad55cace9d37f42496b22427 (patch) | |
tree | 15c655b72db305872e36427e559b0cf37d990f74 | |
parent | 70c87a9854d8ecbeb79e11f8336e0c6247659c8b (diff) | |
parent | 6cb0c883052118c35e424af7a311c66be9b366e1 (diff) | |
download | git-139189b92eb178b6ad55cace9d37f42496b22427.tar.gz |
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
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index 2162478392..3782c3b0cb 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -1234,7 +1234,7 @@ X-Mailer: git-send-email $gitversion if ($smtp->code == 220) { $smtp = Net::SMTP::SSL->start_SSL($smtp, ssl_verify_params()) - or die "STARTTLS failed! ".$smtp->message; + or die "STARTTLS failed! ".IO::Socket::SSL::errstr(); $smtp_encryption = ''; # Send EHLO again to receive fresh # supported commands |