On Sun, Feb 19, 2023 at 11:10 AM Mike Nolta <
mi...@nolta.net> wrote:
>
> My code recently died with this error string: "write |1: copy_file_range: use of closed file".
>
> I'd like to catch it, since i'm already catching file closed errors (fs.ErrClosed). But the error appears to be ErrFileClosing from the internal/poll package [1], and i'm not allowed to import it.
>
> Go version is 1.18.10, OS is ubuntu-latest from github actions.
I think this is a bug. (*File).readFrom, or perhaps NewSyscallError,
should convert poll.ErrFileClosing to os.ErrClosed, just as
(*File).wrapErr does. Can you open an issue for this at
https://go.dev/issue, if you haven't already? Thanks.
Ian