summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)