]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

backend: When task returns non-zero return code, include the task command in the...
authorTomas Babej <tomasbabej@gmail.com>
Sat, 7 Jan 2017 18:26:53 +0000 (19:26 +0100)
committerTomas Babej <tomasbabej@gmail.com>
Sat, 7 Jan 2017 18:26:53 +0000 (19:26 +0100)
tasklib/backends.py

index 440cfe465de49b17f1aa3dd5a77e234144966adc..4b0c6df36221f7681cba68188158218707406dc2 100644 (file)
@@ -274,6 +274,7 @@ class TaskWarrior(Backend):
                 error_msg = stderr.strip()
             else:
                 error_msg = stdout.strip()
                 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
             raise TaskWarriorException(error_msg)
 
         # Return all whole triplet only if explicitly asked for