diff options
| author | Matt Corallo <[email protected]> | 2011-07-02 03:59:37 +0200 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2011-07-02 13:25:18 +0200 |
| commit | 013df1cc3b1f441b9e4361fdf5574d0b2af1812b (patch) | |
| tree | bed2a0d101983254b2e06642d2b68963f88ac65a /src/net.cpp | |
| parent | Merge pull request #343 from muggenhor/proper-http-server-rejection (diff) | |
| download | discoin-013df1cc3b1f441b9e4361fdf5574d0b2af1812b.tar.xz discoin-013df1cc3b1f441b9e4361fdf5574d0b2af1812b.zip | |
Give more detailed error messages for connection failure.
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index e8422a537..23b40f975 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -9,6 +9,10 @@ #include "init.h" #include "strlcpy.h" +#ifdef __WXMSW__ +#include <string.h> +#endif + #ifdef USE_UPNP #include <miniupnpc/miniwget.h> #include <miniupnpc/miniupnpc.h> @@ -148,7 +152,7 @@ bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet, int nTimeout } if (nRet != 0) { - printf("connect() failed after select(): %i\n",nRet); + printf("connect() failed after select(): %s\n",strerror(nRet)); closesocket(hSocket); return false; } |