diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:55:55 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:55:55 +0000 |
commit | dd1fd92b04c5265e134a50bd9262b8f732e90f9c (patch) | |
tree | ddcbe450582902f62ad9a98c5a75271f4f94551a /methods/connect.cc | |
parent | 1db7d3928e37662a6f29fe1cff8dcec38ad93319 (diff) |
Fixed error reporting for empty host strings and invali...
Author: jgg
Date: 2000-05-12 05:04:57 GMT
Fixed error reporting for empty host strings and invalid proxy settings
Diffstat (limited to 'methods/connect.cc')
-rw-r--r-- | methods/connect.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/methods/connect.cc b/methods/connect.cc index 034b1c212..e92eebe76 100644 --- a/methods/connect.cc +++ b/methods/connect.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: connect.cc,v 1.4 1999/11/19 05:01:54 jgg Exp $ +// $Id: connect.cc,v 1.5 2000/05/12 05:04:57 jgg Exp $ /* ###################################################################### Connect - Replacement connect call @@ -161,6 +161,8 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd, _error->Discard(); } - return false; + if (_error->PendingError() == true) + return false; + return _error->Error("Unable to connect to '%s'",Host.c_str()); } /*}}}*/ |