Skip to content

Commit

Permalink
Merge branch 'bc/send-email-ssl-die-message-fix'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Sep 18, 2013
2 parents 70c87a9 + 6cb0c88 commit 139189b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Expand Up @@ -1234,7 +1234,7 @@ sub send_message {
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
Expand Down

0 comments on commit 139189b

Please sign in to comment.