diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-06-26 06:30:09 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-06-26 06:30:09 +0200 |
commit | a23dcda4a75ead3ef9712d90300f45155856b6ce (patch) | |
tree | 8951be2e20b5403c4339fa246b59d7770c8e2e46 /methods/connect.cc | |
parent | bc03039d0f532b6463de33bff60c7d876af6ea5e (diff) | |
parent | b90d7d855709c49a6d5faff0ac65b96fd15e4500 (diff) |
* merged with mainline
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); } |