git-annex/doc/bugs/metadata_cmd._vs._--json-error-messages.mdwn
jwodder c6d1c7d209
2021-10-21 01:35:48 +00:00

6 lines
766 B
Markdown

(Sorry about the title; I was trying to work within the character limit.)
When invoking `git-annex metadata --batch --json --json-error-messages`, if an error occurs in response to some input — say, because the name of a nonexistent file was supplied (or, in my case, because the name of a file downloaded milliseconds ago in a parallel addurl process was supplied) — then `git-annex metadata` will output "git-annex: not an annexed file: {filepath}" to standard error and immediately exit. Not only is this in contrast to what it seems `--json-error-messages` should do, but the "exiting immediately" bit is in contrast to my understanding of how batch mode is supposed to work. Surely this should be fixed?
[[!meta author=jwodder]]
[[!tag projects/dandi]]