summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2016-02-23 09:34:35 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2016-02-23 09:34:35 +0100
commit1b1476a0ebb07a5e22b9ee10b2cbc65226c3a12e (patch)
tree04fadc57e0484096ec4377054e88d7b893268bfd
parent84d3b594a671377fbc6135ab37ad57c7f700e918 (diff)
Improve error message if send mail fails
- Issue #609
-rw-r--r--service/pixelated/resources/mails_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/resources/mails_resource.py b/service/pixelated/resources/mails_resource.py
index 1c322d35..c87d4ca2 100644
--- a/service/pixelated/resources/mails_resource.py
+++ b/service/pixelated/resources/mails_resource.py
@@ -183,7 +183,7 @@ class MailsResource(BaseResource):
if isinstance(error.value, SMTPDownException):
respond_json_deferred({'message': str(error.value)}, request, status_code=503)
else:
- err(error, 'something failed')
+ err(error, 'error occurred while sending')
respond_json_deferred({'message': 'an error occurred while sending'}, request, status_code=422)
deferred = self._handle_post(request)