summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2018-01-08 17:16:51 +0000
committerGitHub <noreply@github.com>2018-01-08 17:16:51 +0000
commit4a67ce79d775adea8626436ae73308621f2c572a (patch)
tree78e07592ba6ae69eb3133e41ffb74ca35dba785a /alot/account.py
parentc81582a36aeaacbe762fa24208bc778fd4dbf275 (diff)
parentedd6c76123c033b9ddc53d674ae396f5ac9fe305 (diff)
Merge pull request #1181 from three-comrades/compose_err
Give better feedback on invalid user input.
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/account.py b/alot/account.py
index a4ce439a..c672686d 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -359,11 +359,11 @@ class SendmailAccount(Account):
def errb(failure):
"""The callback used on error."""
termobj = failure.value
- errmsg = '%s failed with code %s:\n%s' % \
- (self.cmd, termobj.exitCode, str(failure.value))
+ errmsg = '%s failed with code %s:\n%s\nProcess stderr:\n%s' % \
+ (self.cmd, termobj.exitCode, str(failure.value),
+ failure.value.stderr)
logging.error(errmsg)
logging.error(failure.getTraceback())
- logging.error(failure.value.stderr)
raise SendingMailFailed(errmsg)
# make sure self.mail is a string