Rephrase error message

pull/2833/head
Adam Rutkowski 4 years ago
parent a091635b9d
commit f624443a96

@ -8,11 +8,11 @@ defmodule Plausible.Goals do
Goal.changeset(%Goal{}, params)
|> Ecto.Changeset.add_error(
:event_name,
"Goals creation is temporarily disabled due to a planned database migration. Please try again in an hour."
"Sorry! Due to the ongoing maintenance, adding new goals is currently paused. Please try again in one hour. Thanks for your patience!"
)
|> Ecto.Changeset.add_error(
:page_path,
"Goals creation is temporarily disabled due to a planned database migration. Please try again in an hour."
"Sorry! Due to the ongoing maintenance, adding new goals is currently paused. Please try again in one hour. Thanks for your patience!"
)
|> Repo.insert()
end

Loading…
Cancel
Save