]> git.saurik.com Git - apt.git/blobdiff - methods/connect.cc
* merged the no-pragma branch
[apt.git] / methods / connect.cc
index 4e48927edf65fe3ac7d371875b0de6c031ed994d..8c2ac6d56dab4451b41ba0208297cad60c40fbe1 100644 (file)
@@ -103,6 +103,8 @@ static bool DoConnect(struct addrinfo *Addr,string Host,
    if (Err != 0)
    {
       errno = Err;
+      if(errno == ECONNREFUSED)
+         Owner->SetFailExtraMsg("\nFailReason: ConnectionRefused");
       return _error->Errno("connect",_("Could not connect to %s:%s (%s)."),Host.c_str(),
                           Service,Name);
    }