aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorAmitai Schleier <schmonz-web-ikiwiki@schmonz.com>2018-05-13 09:52:04 -0400
committerAmitai Schleier <schmonz-web-ikiwiki@schmonz.com>2018-05-13 09:52:04 -0400
commitfb47d4a9d5466ab3c781b193e57f1ceb9b5e5bfa (patch)
treec830d1c4e432a5e38f3ee8783eee685388876efd /IkiWiki
parentf329603e3a7616e73cb3f76dcb779ab9bc66ce92 (diff)
downloadikiwiki-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.pm2
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."));
}