Skip to content

Commit

Permalink
git-send-email.perl: improve error message in send_message()
Browse files Browse the repository at this point in the history
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jari Aalto authored and Junio C Hamano committed Mar 14, 2010
1 parent 809780b commit e5afb3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,10 @@ sub send_message
}

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) {
Expand Down

0 comments on commit e5afb3a

Please sign in to comment.