When emailauth can't send, show the error message.

master
Amitai Schleier 2018-05-13 09:52:04 -04:00
parent f329603e3a
commit fb47d4a9d5
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ sub email_auth ($$$$) {
.">", .">",
Subject => "$config{wikiname} login | $shorturl", Subject => "$config{wikiname} login | $shorturl",
Message => $template->output, Message => $template->output,
) or error(gettext("Failed to send mail")); ) or error(sprintf(gettext("Failed to send mail: %s"), $Mail::Sendmail::error));
$infodisplayer->(gettext("You have been sent an email, with a link you can open to complete the login process.")); $infodisplayer->(gettext("You have been sent an email, with a link you can open to complete the login process."));
} }