Sure: https://github.com/golang/go/issues/58622
Thanks very much, -Mike On Tue, Feb 21, 2023 at 12:23 AM Ian Lance Taylor <i...@golang.org> wrote: > 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/CAHoX_%2B1cwr0PJZQ-jz6aaqVm2JhZY-k9k_8Q%3D-f7pXaq7DmeNw%40mail.gmail.com.