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>
Jari Aalto committed
Mar 14, 2010 at 17:15 UTC
e5afb3a6f96e4d3a8733fbeee2c3cb44829e386b
1 file changed
+4
-1
git-send-email.perl
+4
-1
@@ -957,7 +957,10 @@ X-Mailer: git-send-email $gitversion
957
}
958
959
if (!$smtp) {
960
- die "Unable to initialize SMTP properly. Is there something wrong with your config?";
960
+ die "Unable to initialize SMTP properly. Check config. ",
961
+ "VALUES: server=$smtp_server ",
962
+ "encryption=$smtp_encryption ",
963
+ defined $smtp_server_port ? "port=$smtp_server_port" : "";
964
}
965
966
if (defined $smtp_authuser) {