summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
authorbubulle@debian.org <>2006-03-12 21:18:45 +0100
committerbubulle@debian.org <>2006-03-12 21:18:45 +0100
commita3c8f91f032961aca236f29af646170843a06730 (patch)
treecb11505f666d3f5ba23be9c6d30086fe29dab977 /methods/connect.cc
parent54a14f507b63236ce8c94bb92a835be0cfd161dd (diff)
parentad97ee36860c237427dc38ac8ef7f537ac275d77 (diff)
Merge from Michael tree
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);
}