summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorLibravatar Jari Aalto <jari.aalto@cante.net>2010-03-14 17:15:33 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-14 13:02:47 -0700
commite5afb3a6f96e4d3a8733fbeee2c3cb44829e386b (patch)
tree302ec4bc5443c96653ca8ee1612c3fc905e72d5b /git-send-email.perl
parentMerge branch 'maint' (diff)
downloadtgif-e5afb3a6f96e4d3a8733fbeee2c3cb44829e386b.tar.xz
git-send-email.perl: improve error message in send_message()
Signed-off-by: Jari Aalto <jari.aalto@cante.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index e05455f74c..221506c3ed 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -957,7 +957,10 @@ X-Mailer: git-send-email $gitversion
}
if (!$smtp) {
- die "Unable to initialize SMTP properly. Is there something wrong with your config?";
+ die "Unable to initialize SMTP properly. Check config. ",
+ "VALUES: server=$smtp_server ",
+ "encryption=$smtp_encryption ",
+ defined $smtp_server_port ? "port=$smtp_server_port" : "";
}
if (defined $smtp_authuser) {