From 7c9c66601ef427d6eed2389f513585087798c63d Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 25 Aug 2018 22:41:36 +0200 Subject: [PATCH] print error --- common/buf/readv_windows.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/buf/readv_windows.go b/common/buf/readv_windows.go index 8339fdb1..8d376781 100644 --- a/common/buf/readv_windows.go +++ b/common/buf/readv_windows.go @@ -2,7 +2,10 @@ package buf -import "syscall" +import ( + "fmt" + "syscall" +) type windowsReader struct { bufs []syscall.WSABuf @@ -29,6 +32,7 @@ func (r *windowsReader) Read(fd uintptr) int32 { var flags uint32 err := syscall.WSARecv(syscall.Handle(fd), &r.bufs[0], uint32(len(r.bufs)), &nBytes, &flags, nil, nil) if err != nil { + fmt.Println("Err=", err) return -1 } return int32(nBytes)