]> git.saurik.com Git - apt.git/blobdiff - methods/connect.cc
update changelog to match whats left in experimental relative to sid
[apt.git] / methods / connect.cc
index 35f4723ce33b2dbb3fac9cb96059107e95eba21c..fc7a72ee93a00ef9d3f9a9886d2ba9a7e083145c 100644 (file)
@@ -206,8 +206,8 @@ bool Connect(std::string Host,int Port,const char *Service,int DefPort,int &Fd,
                                    Host.c_str());
            }
            if (Res == EAI_SYSTEM)
                                    Host.c_str());
            }
            if (Res == EAI_SYSTEM)
-              return _error->Error(_("System error resolving '%s:%s' (%s)"),
-                                   Host.c_str(),ServStr,strerror(errno));
+              return _error->Errno("getaddrinfo", _("System error resolving '%s:%s'"),
+                                      Host.c_str(),ServStr);
            return _error->Error(_("Something wicked happened resolving '%s:%s' (%i - %s)"),
                                 Host.c_str(),ServStr,Res,gai_strerror(Res));
         }
            return _error->Error(_("Something wicked happened resolving '%s:%s' (%i - %s)"),
                                 Host.c_str(),ServStr,Res,gai_strerror(Res));
         }