diff options
author | bubulle@debian.org <> | 2006-03-12 21:18:45 +0100 |
---|---|---|
committer | bubulle@debian.org <> | 2006-03-12 21:18:45 +0100 |
commit | a3c8f91f032961aca236f29af646170843a06730 (patch) | |
tree | cb11505f666d3f5ba23be9c6d30086fe29dab977 /methods/connect.cc | |
parent | 54a14f507b63236ce8c94bb92a835be0cfd161dd (diff) | |
parent | ad97ee36860c237427dc38ac8ef7f537ac275d77 (diff) |
Merge from Michael tree
Diffstat (limited to 'methods/connect.cc')
-rw-r--r-- | methods/connect.cc | 2 |
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); } |