From fb47d4a9d5466ab3c781b193e57f1ceb9b5e5bfa Mon Sep 17 00:00:00 2001 From: Amitai Schleier Date: Sun, 13 May 2018 09:52:04 -0400 Subject: When emailauth can't send, show the error message. --- IkiWiki/Plugin/emailauth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/emailauth.pm b/IkiWiki/Plugin/emailauth.pm index 44311400a..becf40ca5 100644 --- a/IkiWiki/Plugin/emailauth.pm +++ b/IkiWiki/Plugin/emailauth.pm @@ -95,7 +95,7 @@ sub email_auth ($$$$) { .">", Subject => "$config{wikiname} login | $shorturl", 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.")); } -- cgit v1.2.3