Fix test break for windows: better error handling

pull/2531/head
Shelikhoo 2019-06-06 22:14:50 +08:00 committed by Nicholas Wang
parent dd617da67a
commit 82075d1868
No known key found for this signature in database
GPG Key ID: F20CA399C9BD9100
1 changed files with 12 additions and 8 deletions

View File

@ -33,5 +33,9 @@ func checkReadVConstraint(conn syscall.RawConn) (bool, error) {
reason = err
})
return isSocketReady, err
if err != nil {
return false, err
}
return isSocketReady, reason
}