summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-06-26 06:30:09 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-06-26 06:30:09 +0200
commita23dcda4a75ead3ef9712d90300f45155856b6ce (patch)
tree8951be2e20b5403c4339fa246b59d7770c8e2e46 /methods/connect.cc
parentbc03039d0f532b6463de33bff60c7d876af6ea5e (diff)
parentb90d7d855709c49a6d5faff0ac65b96fd15e4500 (diff)
* merged with mainline
Diffstat (limited to 'methods/connect.cc')
-rw-r--r--methods/connect.cc2
1 files changed, 2 insertions, 0 deletions
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);
}