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