diff options
| author | Mikio Hara <mikioh.mikioh@gmail.com> | 2017-04-24 18:37:48 +0900 |
|---|---|---|
| committer | Mikio Hara <mikioh.mikioh@gmail.com> | 2017-04-25 21:39:18 +0000 |
| commit | 91c9b0d568e41449f26858d88eb2fd085eaf306d (patch) | |
| tree | 9c1db20e66b464395fcd99c7c7d92e44a60ebe6b /src/runtime/netpoll_kqueue.go | |
| parent | 5d306dcdace2ec5cde7d0008d6126c3cffe25ea1 (diff) | |
| download | go-91c9b0d568e41449f26858d88eb2fd085eaf306d.tar.xz | |
runtime: adjust netpoll panic messages
Change-Id: I34547b057605bb9e1e2227c41867589348560244
Reviewed-on: https://go-review.googlesource.com/41513
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/netpoll_kqueue.go')
| -rw-r--r-- | src/runtime/netpoll_kqueue.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/netpoll_kqueue.go b/src/runtime/netpoll_kqueue.go index 5adf19ca09..71de98bcd6 100644 --- a/src/runtime/netpoll_kqueue.go +++ b/src/runtime/netpoll_kqueue.go @@ -23,8 +23,8 @@ var ( func netpollinit() { kq = kqueue() if kq < 0 { - println("netpollinit: kqueue failed with", -kq) - throw("netpollinit: kqueue failed") + println("runtime: kqueue failed with", -kq) + throw("runtime: netpollinit failed") } closeonexec(kq) } @@ -60,7 +60,7 @@ func netpollclose(fd uintptr) int32 { } func netpollarm(pd *pollDesc, mode int) { - throw("unused") + throw("runtime: unused") } // Polls for ready network connections. @@ -80,7 +80,7 @@ retry: if n < 0 { if n != -_EINTR { println("runtime: kevent on fd", kq, "failed with", -n) - throw("kevent failed") + throw("runtime: netpoll failed") } goto retry } |
