summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorBenjamin <fagga@gmx.de>2012-10-04 13:39:00 +0200
committerBenjamin <fagga@gmx.de>2012-10-04 13:39:00 +0200
commit7cd10af0caf32be9141ec1e34f8d6ad76a4b23db (patch)
tree0c6434a8f8291efb1f3a8b06092045b6514a8df5 /alot/account.py
parent5ed59825ffaeaacea90ea10be4b932c60428ed8e (diff)
Include STDERR from sendmail_command in SendmailAccount error message
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/account.py b/alot/account.py
index 1a4a28a2..ddc6cad4 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -166,7 +166,7 @@ class SendmailAccount(Account):
def errb(failure):
termobj = failure.value
- errmsg = '%s\nsendmail_cmd set to: %s' % (str(termobj), self.cmd)
+ errmsg = '%s failed with code %s:\n%s' % (self.cmd, termobj.exitCode, failure.value.stderr.rstrip())
logging.error(errmsg)
logging.error(failure.getTraceback())
logging.error(failure.value.stderr)