8a42a6701d1ac18e15f0da98a8cd10ec444085b8
[git-annex.git] /
1 ### Please describe the problem.
2
3 [Originally blamed datalad](https://github.com/datalad/datalad/issues/3685#issuecomment-533075845) but apparently `git annex add --json` does not include error message in the json output.  In our case it was due to permission issues.
4
5
6 [[!format sh """
7 $ git annex add more --json
8   more: setFileMode: permission denied (Operation not permitted)
9 {"command":"add","success":false,"file":"more"}
10 git-annex: add: 1 failed
11 """]]
12
13
14 [[!meta author=yoh]]
15 [[!tag projects/repronim]]
16 [[!meta project=repronim]]
17
18 > If you use --json-error-messages it does work, at least in this
19 > permissions error case. So nothing more needs to be [[done]]. --[[Joey]]