From: Tomas Babej Date: Sat, 7 Jan 2017 18:26:53 +0000 (+0100) Subject: backend: When task returns non-zero return code, include the task command in the... X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/516b8d6c03058552cfe7c3bfda4362640a3077e1?ds=sidebyside backend: When task returns non-zero return code, include the task command in the error message --- diff --git a/tasklib/backends.py b/tasklib/backends.py index 440cfe4..4b0c6df 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -274,6 +274,7 @@ class TaskWarrior(Backend): error_msg = stderr.strip() else: error_msg = stdout.strip() + error_msg += u'\nCommand used: ' + u' '.join(command_args) raise TaskWarriorException(error_msg) # Return all whole triplet only if explicitly asked for