Improve error messages

This commit is contained in:
Mark Felder 2020-07-14 13:12:16 -05:00
parent 62fc8eab0d
commit 37297a8482
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ def check_confirmation_accounts!(:ok) do
if Pleroma.Config.get([:instance, :account_activation_required]) &&
not Pleroma.Config.get([Pleroma.Emails.Mailer, :enabled]) do
Logger.error(
"To use confirmation an user account need to enable and setting mailer.\nIf you want to start Pleroma anyway, set\nconfig :pleroma, :instance, account_activation_required: false\nOtherwise setup and enable mailer."
"Account activation enabled, but no Mailer settings enabled.\nPlease set config :pleroma, :instance, account_activation_required: false\nOtherwise setup and enable Mailer."
)
{:error, "Confirmation account: Mailer is disabled"}
{:error, "Account activation enabled, but Mailer is disabled. Cannot send confirmation emails."}
else
:ok
end