From 7e8463ab0bd8468a0ed42f9f35726e08163df50c Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Thu, 19 Sep 2019 18:40:03 +0000 Subject: [PATCH] initial report channeled from datalad/issues --- ...with_an_error_message_in_case_of_an_error.mdwn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/bugs/add_--json_should_provide_a___34__note__34___with_an_error_message_in_case_of_an_error.mdwn diff --git a/doc/bugs/add_--json_should_provide_a___34__note__34___with_an_error_message_in_case_of_an_error.mdwn b/doc/bugs/add_--json_should_provide_a___34__note__34___with_an_error_message_in_case_of_an_error.mdwn new file mode 100644 index 0000000000..b039b74df7 --- /dev/null +++ b/doc/bugs/add_--json_should_provide_a___34__note__34___with_an_error_message_in_case_of_an_error.mdwn @@ -0,0 +1,15 @@ +### Please describe the problem. + +[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. + + +[[!format sh """ +$ git annex add more --json + more: setFileMode: permission denied (Operation not permitted) +{"command":"add","success":false,"file":"more"} +git-annex: add: 1 failed +"""]] + + +[[!meta author=yoh]] +[[!meta project=repronim]]