X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/38ec8d045e14a40d6de7b6e5b07be0f856591ee2..67746dfc003dbe51b607268ea3138e0d3b6f9301:/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)