]> git.mxchange.org Git - simgear.git/commitdiff
Alternate, WinSock friendly reporting for host lookup failures.
authorJames Turner <zakalawe@mac.com>
Fri, 16 Sep 2011 15:43:09 +0000 (16:43 +0100)
committerJames Turner <zakalawe@mac.com>
Fri, 16 Sep 2011 15:43:09 +0000 (16:43 +0100)
simgear/io/sg_netChannel.cxx

index 463f24f9d28186210eaa34ac3b4094efc3d085ef..a189f6816af6de09e6b8a1af07315fc0b4a2f947 100644 (file)
@@ -210,9 +210,8 @@ NetChannel::handleResolve()
     }
     
     if (!addr.isValid()) {
-    // I'm absuing ENETUNREACH, all we do is pass this to strerror
-    // in handleError
-        handleError (ENETUNREACH);
+        SG_LOG(SG_IO, SG_WARN, "Network: host lookup failed:" << host);
+        handleError (0);
         close();
         return -1;
     }