diff options
author | Amitai Schleier <schmonz-web-ikiwiki@schmonz.com> | 2018-05-13 09:52:04 -0400 |
---|---|---|
committer | Amitai Schleier <schmonz-web-ikiwiki@schmonz.com> | 2018-05-13 09:52:04 -0400 |
commit | fb47d4a9d5466ab3c781b193e57f1ceb9b5e5bfa (patch) | |
tree | c830d1c4e432a5e38f3ee8783eee685388876efd /IkiWiki | |
parent | f329603e3a7616e73cb3f76dcb779ab9bc66ce92 (diff) | |
download | ikiwiki-fb47d4a9d5466ab3c781b193e57f1ceb9b5e5bfa.tar ikiwiki-fb47d4a9d5466ab3c781b193e57f1ceb9b5e5bfa.tar.gz |
When emailauth can't send, show the error message.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/emailauth.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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.")); } |