more accurate description of errors

This commit is contained in:
Benjamin Sergeant 2019-01-05 17:18:43 -08:00
parent 5b1c97b774
commit ff265d83f9

View File

@ -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