From 13de3079105d65f130db04adc9d3004f4651cd69 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Jan 2009 20:20:50 +0000 Subject: Ok, no...now we have better debugging. --- src/socket.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/socket.cpp b/src/socket.cpp index bd60540..3870a59 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -97,9 +97,8 @@ Bu::Socket::Socket( const Bu::FString &sAddr, int nPort, int nTimeout ) pCur = pCur->ai_next; } - throw Bu::SocketException("%d: Couldn't resolve hostname %s (%s).\n", - ret, - sAddr.getStr(), strerror(errno)); + throw Bu::SocketException("Couldn't resolve hostname %s (%s).\n", + sAddr.getStr(), gai_strerror(ret)); } struct addrinfo *pCur = pAddr; -- cgit v1.2.3