summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-02-05 17:52:28 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-02-05 17:52:28 +0100
commit59271f62e4a291c8d96e1f6073203c395734b6ca (patch)
tree114963f118d57bafc02b273dfdb1d4b972527c9a /methods/connect.cc
parent361593e92a44255cc0ef98417e7457911716cab5 (diff)
* use pkgAcqMethod::FailReason() for consistent error reporting
Diffstat (limited to 'methods/connect.cc')
-rw-r--r--methods/connect.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index 4e227c3fd..145001fb3 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -163,6 +163,7 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd,
DefPort = 0;
continue;
}
+ Owner->SetFailReason("ResolveFailure");
return _error->Error(_("Could not resolve '%s'"),Host.c_str());
}