On Sun, Feb 19, 2023 at 11:10 AM Mike Nolta <m...@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 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVp69ozZ%2ByVoXfTbd%3DPPbn6YwNLppj_ApYE%2BdNcZdhGmg%40mail.gmail.com.