aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/messages.pot
diff options
context:
space:
mode:
authorzorun <github@bitsofnetworks.org>2020-05-21 21:13:33 +0200
committerGitHub <noreply@github.com>2020-05-21 21:13:33 +0200
commitdf6ffc7d86b7334b2a3c309318cc8020cd8e781a (patch)
treef4399df34a5d918f15ec17680878dff08459a19b /ihatemoney/messages.pot
parente10ea6c776339342dae098524742722c99d6b2bf (diff)
downloadihatemoney-mirror-df6ffc7d86b7334b2a3c309318cc8020cd8e781a.zip
ihatemoney-mirror-df6ffc7d86b7334b2a3c309318cc8020cd8e781a.tar.gz
ihatemoney-mirror-df6ffc7d86b7334b2a3c309318cc8020cd8e781a.tar.bz2
Improve error handling when sending emails (#595)
In one case, we were not catching a family of possible exceptions (socket.error), and in the two other cases there was no error handling at all. Sending emails can easily fail if no email server is configured, so it is really necessary to handle these errors instead of crashing with a HTTP 500 error. Refactor email sending code and add proper error handling. Show alert messages that tell the user if an email was sent or if there was an error. When sending a password reminder email or inviting people by email, we don't proceed to the next step in case of error, because sending emails is the whole point of these actions.
Diffstat (limited to 'ihatemoney/messages.pot')
-rw-r--r--ihatemoney/messages.pot19
1 files changed, 18 insertions, 1 deletions
diff --git a/ihatemoney/messages.pot b/ihatemoney/messages.pot
index dcf16b3..9569d05 100644
--- a/ihatemoney/messages.pot
+++ b/ihatemoney/messages.pot
@@ -157,13 +157,24 @@ msgstr ""
msgid "You have just created '%(project)s' to share your expenses"
msgstr ""
-msgid "Error while sending reminder email"
+msgid "A reminder email has just been sent to you"
+msgstr ""
+
+msgid ""
+"We tried to send you an reminder email, but there was an error. You can "
+"still use the project normally."
msgstr ""
#, python-format
msgid "The project identifier is %(project)s"
msgstr ""
+msgid ""
+"Sorry, there was an error while sending you an email with password reset "
+"instructions. Please check the email configuration of the server or "
+"contact the administrator."
+msgstr ""
+
msgid "No token provided"
msgstr ""
@@ -192,6 +203,12 @@ msgstr ""
msgid "Your invitations have been sent"
msgstr ""
+msgid ""
+"Sorry, there was an error while trying to send the invitation emails. "
+"Please check the email configuration of the server or contact the "
+"administrator."
+msgstr ""
+
#, python-format
msgid "%(member)s has been added"
msgstr ""