Also see ON ERROR, which could retrieve the filenames & display and/or log a custom error message.
I have a huge blind spot for the "on" stuff, which I somehow missed for decades.
Thanks, I'll have to look into that. The "on" stuff is a huge blind spot for me.
[I do wish the help page for on error had a more concrete example like this]
Unless you're redirecting output to nul, I don't see the problem.
Which I am. There are situations where I don't want lists of filenames filling up my screen because there are thousands. If an error message was buried in those thousands of lines, I would never see it in a million years.
So I either use copy/q to suppress the list, or i pipe it through a script i have that makes a randomly colored dot per file copied
Neither of those situations will display the filenames (maybe copy /q does on error?), so the error message is not solveable.
And going back and doing it again requires it being a reproduceable situation, which it often is not (temporary file locks and such).
I've moved on from countless errors over the decades without ever knowing what they were because of this. The amount of effort to include the filename vs the amount of effort of anyone in my situation seems rather disproportionate IMO
If you're doing a COPY, TCC will write the source file + target file to STDOUT. If the COPY fails, the next line (written to STDERR) will contain the error message. Then just look at the previous line, and you'll know that it was either the source or the target.
Which is pretty useful for the standard use case!
But less so with /q and/or redirecting STDOUT to nul
Anyway.. I did figure out the file. It was Charles's StripAnsi.dll that won't read as long as the plugin is loaded, which seems..... excessive. I'll have to talk to Charles about that.