summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorJulian Mehne <julian.mehne@posteo.de>2017-12-05 03:09:48 +0100
committerJulian Mehne <julian.mehne@posteo.de>2017-12-06 14:28:48 +0100
commit2ef957b4d9626eb1b1ff6d011823ac92f0eb917d (patch)
tree422e20a853ec96aadd004e229543d1bfd769d5bb /alot/account.py
parentb9ae81a590eee4ab3f601a5edc1ea3f451c39c66 (diff)
Print stderr of failed sendmail cmd in prompt.
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