diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2016-02-23 09:34:35 +0100 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2016-02-23 09:34:35 +0100 |
commit | 1b1476a0ebb07a5e22b9ee10b2cbc65226c3a12e (patch) | |
tree | 04fadc57e0484096ec4377054e88d7b893268bfd | |
parent | 84d3b594a671377fbc6135ab37ad57c7f700e918 (diff) |
Improve error message if send mail fails
- Issue #609
-rw-r--r-- | service/pixelated/resources/mails_resource.py | 2 |
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) |