I think it might be a good idea to add an actual API for detecting when
there is this kind of problem, so datalad does not have to parse
error messages (which could easily change). But that would need to be a
-separate discussion.
+separate discussion. I've opened
+[[todo/api_for_telling_when_nonexistant_or_non_git_files_passed]] for that.
"""]]
--- /dev/null
+As seen in <https://github.com/datalad/datalad/pull/6510> datalad
+is having to parse error messages to determine when nonexistant
+filenames were passed to git-annex. It would be better if there was some
+kind of API that it could use, since error messages can (and have) changed.
+
+What would this API look like? It seems it could not be a special
+exit status of git-annex, because exit status 101 is already allocated
+for indicating when things like --size-limit and --time-limit have caused
+it to skip processing certian files.
+
+Perhaps something like `--json-error-unmatch` which would make it output
+an additional line with a JSON record indicating that git ls-files
+--error-unmatch had errored out.