
From: Gilles Detillieux <grdetil@scrc.umanitoba.ca>
To: htdig@htdig.org
Subject: [htdig] Patch

This patch adds error messages for unknown hosts.

--- htdig-3.1.2/htdig/Document.cc.nohostmsg	Wed Apr 21 21:47:57 1999
+++ htdig-3.1.2/htdig/Document.cc	Fri Jul 30 13:48:03 1999
@@ -301,14 +301,22 @@ Document::RetrieveHTTP(time_t date)
 	if (c.assign_port(proxy->port()) == NOTOK)
 	    return Document_not_found;
 	if (c.assign_server(proxy->host()) == NOTOK)
+	{
+	    if (debug)
+		cout << "Unknown proxy host: " << proxy->host() << endl;
 	    return Document_no_host;
+	}
     }
     else
     {
 	if (c.assign_port(url->port()) == NOTOK)
 	    return Document_not_found;
 	if (c.assign_server(url->host()) == NOTOK)
+	{
+	    if (debug)
+		cout << "Unknown host: " << proxy->host() << endl;
 	    return Document_no_host;
+	}
     }
 	
     if (c.connect(1) == NOTOK)

