more accurate description of errors
This commit is contained in:
parent
5b1c97b774
commit
ff265d83f9
@ -84,7 +84,7 @@ namespace ix
|
||||
if (errno != EINPROGRESS)
|
||||
{
|
||||
closeSocket(fd);
|
||||
errMsg = strerror(errno);
|
||||
errMsg = std::string("Connect error in ::connect:") + strerror(errno);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -126,7 +126,7 @@ namespace ix
|
||||
optval != 0)
|
||||
{
|
||||
closeSocket(fd);
|
||||
errMsg = strerror(optval);
|
||||
errMsg = std::string("Connect error in getsockopt:") + strerror(optval);
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user