diff options
author | yarikoptic <yarikoptic@web> | 2018-02-06 22:35:41 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2018-02-06 22:35:41 +0000 |
commit | 5176e9f21f5e1a0bdc15f692b4c89ec7b1d9d6ba (patch) | |
tree | 140a970599e3473ebdae2ccba459cd093887049b | |
parent | 2289c0995834d8530d9d055b4d35e478b672e8c9 (diff) |
-rw-r--r-- | doc/todo/include_msg_with_possible_reason_why_command___40__e.g._add__41___failed_into_--json_output.mdwn | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/todo/include_msg_with_possible_reason_why_command___40__e.g._add__41___failed_into_--json_output.mdwn b/doc/todo/include_msg_with_possible_reason_why_command___40__e.g._add__41___failed_into_--json_output.mdwn new file mode 100644 index 000000000..4bf193598 --- /dev/null +++ b/doc/todo/include_msg_with_possible_reason_why_command___40__e.g._add__41___failed_into_--json_output.mdwn @@ -0,0 +1,18 @@ +ATM errors are output into stderr while json record lacks any hints on what went wrong + +[[!format sh """ +$> git annex add --json longfilenametogetlotsoferrorsandevenlonger4 + longfilenametogetlotsoferrorsandevenlonger4: setFileMode: permission denied (Operation not permitted) +{"command":"add","success":false,"file":"longfilenametogetlotsoferrorsandevenlonger4"} +"""]] + +would be nice(r) to have + +[[!format sh """ +$> git annex add --json longfilenametogetlotsoferrorsandevenlonger4 +{"command":"add","success":false,"file":"longfilenametogetlotsoferrorsandevenlonger4", "msg": "setFileMode: permission denied (Operation not permitted)"} +"""]] +or may be even an explicit "errormsg" or alike instead of just a generic "msg" + + +[[!meta author=yoh]] |