file: Restore error capture in undocumented READ_ELF mode
Revise the error message added by !6240 (merged) to honor the CAPTURE_ERROR option. This is needed by the call site in BundleUtilities to suppress errors on non-ELF files.
Fixes: #23074 (closed)
Backport: release