X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/38ec8d045e14a40d6de7b6e5b07be0f856591ee2..b9539265b8094c49d02317f97fd2cabb585e69a8:/tasklib/task.py diff --git a/tasklib/task.py b/tasklib/task.py index 50384bf..e8e5dfd 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -845,7 +845,7 @@ class TaskWarrior(object): stdout, stderr = [x.decode('utf-8') for x in p.communicate()] if p.returncode and allow_failure: if stderr.strip(): - error_msg = stderr.strip().splitlines()[-1] + error_msg = stderr.strip() else: error_msg = stdout.strip() raise TaskWarriorException(error_msg)