]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
When emailauth can't send, show the error message.
authorAmitai Schleier <schmonz-web-ikiwiki@schmonz.com>
Sun, 13 May 2018 13:52:04 +0000 (09:52 -0400)
committerAmitai Schleier <schmonz-web-ikiwiki@schmonz.com>
Sun, 13 May 2018 13:52:04 +0000 (09:52 -0400)
IkiWiki/Plugin/emailauth.pm

index 44311400adeed3c0ccb65392859376d3de2725eb..becf40ca506a234082eb837f27b892b083639d54 100644 (file)
@@ -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."));
 }