]> git.saurik.com Git - apt.git/blobdiff - methods/connect.cc
* use pkgAcqMethod::FailReason() for consistent error reporting
[apt.git] / methods / connect.cc
index 4e227c3fd655d63e7b2c548e9d7c032d9d9c8b2f..145001fb37c2aa637cfaecca46b944a0acc2b001 100644 (file)
@@ -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());
            }