diff options
Diffstat (limited to 'libgo/go/net/sendfile_windows.go')
-rw-r--r-- | libgo/go/net/sendfile_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/net/sendfile_windows.go b/libgo/go/net/sendfile_windows.go index b128ba27b00..f3f3b54b886 100644 --- a/libgo/go/net/sendfile_windows.go +++ b/libgo/go/net/sendfile_windows.go @@ -46,7 +46,7 @@ func sendFile(fd *netFD, r io.Reader) (written int64, err error, handled bool) { return syscall.TransmitFile(o.fd.sysfd, o.handle, o.qty, 0, &o.o, nil, syscall.TF_WRITE_BEHIND) }) if err != nil { - return 0, err, false + return 0, os.NewSyscallError("transmitfile", err), false } if lr != nil { lr.N -= int64(done) |