]> rtime.felk.cvut.cz Git - git.git/commitdiff
git-send-email.perl: improve error message in send_message()
authorJari Aalto <jari.aalto@cante.net>
Sun, 14 Mar 2010 15:15:33 +0000 (17:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Mar 2010 20:02:47 +0000 (13:02 -0700)
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl

index e05455f74c7e23c28cae41b68fa80df87c633ce9..221506c3ed8b55eeb64dc0e01298a0b5d7bf4085 100755 (executable)
@@ -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) {