mirror of
https://github.com/golang/go
synced 2024-11-21 21:04:41 -07:00
Fix Windows build; ErrorString->NewError
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4634080
This commit is contained in:
parent
712fb6dcd3
commit
5dfdccf2b0
@ -17,7 +17,7 @@ func (p *Process) Wait(options int) (w *Waitmsg, err Error) {
|
||||
case syscall.WAIT_FAILED:
|
||||
return nil, NewSyscallError("WaitForSingleObject", e)
|
||||
default:
|
||||
return nil, ErrorString("os: unexpected result from WaitForSingleObject")
|
||||
return nil, NewError("os: unexpected result from WaitForSingleObject")
|
||||
}
|
||||
var ec uint32
|
||||
e = syscall.GetExitCodeProcess(int32(p.handle), &ec)
|
||||
|
Loading…
Reference in New Issue
Block a user