You might want to dig a bit more. The error that generated that string 
would not be an ErrFileClosing. It appears that it originated with an 
ErrFileClosing, but by the time it gets to you it has been wrapped more 
than once as it percolated up the layers of code. 

On Sunday, February 19, 2023 at 2:10:11 PM UTC-5 Mike Nolta wrote:

> Hi,
>
> 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.
>
> Thanks,
>
> -Mike
>
> [1]: 
> https://cs.opensource.google/go/go/+/refs/tags/go1.20.1:src/internal/poll/fd.go;l=35
>
>

-- 
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/72e02209-0e50-486f-b418-353f525b5f73n%40googlegroups.com.

Reply via email to