From 516b8d6c03058552cfe7c3bfda4362640a3077e1 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 7 Jan 2017 19:26:53 +0100 Subject: [PATCH 1/1] backend: When task returns non-zero return code, include the task command in the error message --- tasklib/backends.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5