Skip to content

Commit

Permalink
When emailauth can't send, show the error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmonz committed May 13, 2018
1 parent f329603 commit fb47d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IkiWiki/Plugin/emailauth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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."));
}
Expand Down

0 comments on commit fb47d4a

Please sign in to comment.