more accurate description of errors

This commit is contained in:
Benjamin Sergeant 2019-01-05 17:18:43 -08:00
parent f50881a72f
commit 4df5050760

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