X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/bdcf3b49360a353381e981d1918fc300c559948a..6a30946d00371ff1fb7f94791364706a4bac0ea2:/methods/connect.cc diff --git a/methods/connect.cc b/methods/connect.cc index 4e48927ed..8c2ac6d56 100644 --- a/methods/connect.cc +++ b/methods/connect.cc @@ -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); }