aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/include_msg_with_possible_reason_why_command___40__e.g._add__41___failed_into_--json_output.mdwn
blob: c634297d13ee7cfd41056d291c03186652fee3e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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]]

> [[done]] --[[Joey]]