Date: Thursday, January 18, 2007 @ 16:56:38
  Author: gilles
    Path: /cvsroot/carob/carob/src

Modified: ControllerInfo.cpp (1.13 -> 1.14)

Fixed error message upon getaddrinfo() failure to get also the system error


--------------------+
 ControllerInfo.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: carob/src/ControllerInfo.cpp
diff -u carob/src/ControllerInfo.cpp:1.13 carob/src/ControllerInfo.cpp:1.14
--- carob/src/ControllerInfo.cpp:1.13   Wed Jan 17 17:23:31 2007
+++ carob/src/ControllerInfo.cpp        Thu Jan 18 16:56:38 2007
@@ -108,11 +108,11 @@
   {
     wstring wMsg(L"Error while executing getaddrinfo() on hostname \"" + name 
+ L"\"");
 #ifndef __MINGW32__
+    // get the error from getaddrinfo
+    const char* gaiMsg = gai_strerror(error);
+    wMsg += L". Error was: " + fromString(gaiMsg);
     if (addressList != NULL)
     {
-      // get the error from getaddrinfo
-      const char* gaiMsg = gai_strerror(error);
-      wMsg += L". Error was: " + fromString(gaiMsg);
       freeaddrinfo(addressList);
     }
 #endif

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to