[[!comment format=mdwn
 username="joey"
 subject="""comment 8"""
 date="2023-04-25T22:45:24Z"
 content="""
Ok, implemented the simple alternative. Here's how it looks:

	joey@darkstar:~/tmp/xxx>git-annex add 'dne' --json --json-error-messages
	{"command":"add","error-messages":["git-annex: dne not found"],"errorid":"FileNotFound","file":"dne","input":["dne"],"success":false}
	add: 1 failed

The errorid will remain stable. I can add those to other error messages
now, on request BTW.

Note that when git-annex relies on `git ls-files --error-unmatch` to
complain about nonexistant or non-git files, the error messages from
git will still be displayed to stderr, not this nice json. So
datalad will need to keep its parser for that part.
"""]]
