author | Yakov Lerner <iler.ml@gmail.com> | |
Fri, 25 Sep 2009 22:10:21 +0000 (15:10 -0700) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 25 Sep 2009 22:10:59 +0000 (15:10 -0700) | ||
commit | fb3650ed100a549f80d822f28ccf0f82e9f75f3e | |
tree | 780f6206f5aeaa9edc625d6857488d038829c73e | tree | snapshot |
parent | e648f8b6d0dc6fb7e8c8e3ed47eec6b12aaf450a | commit | diff |
send-email: fix obscure error when encryption=tls and smtp cannot connect
When encryption=tls and we cannot connect to the SMTP server,
git-send-email was printing an obtuse perl error:
Can't call method "command" on an undefined value
at git-send-email line 927.
This can occur when smtp host or port is misspelled, or the network
is down, and encryption has been set to tls.
Instead we expect some familiar "Cannot connect to SERVER:PORT"
message. Fix it to print normal "smtp can't connect" diagnostics.
Signed-off-by: Yakov Lerner <iler.ml@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
When encryption=tls and we cannot connect to the SMTP server,
git-send-email was printing an obtuse perl error:
Can't call method "command" on an undefined value
at git-send-email line 927.
This can occur when smtp host or port is misspelled, or the network
is down, and encryption has been set to tls.
Instead we expect some familiar "Cannot connect to SERVER:PORT"
message. Fix it to print normal "smtp can't connect" diagnostics.
Signed-off-by: Yakov Lerner <iler.ml@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-send-email.perl | diff | blob | history |