From 0d2964cf2beb589814c2cdeef983289d7050c6de Mon Sep 17 00:00:00 2001 From: reger Date: Thu, 15 Dec 2016 23:59:50 +0100 Subject: [PATCH] expanded error message on rejected crawl url due to faile dns lookup close of http://mantis.tokeek.de/view.php?id=678 --- source/net/yacy/crawler/CrawlStacker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/crawler/CrawlStacker.java b/source/net/yacy/crawler/CrawlStacker.java index 9551d4dac..622f41ac0 100644 --- a/source/net/yacy/crawler/CrawlStacker.java +++ b/source/net/yacy/crawler/CrawlStacker.java @@ -585,7 +585,7 @@ public final class CrawlStacker { //assert local == yacyURL.isLocalDomain(url.hash()); // TODO: remove the dnsResolve above! final InetAddress ia = Domains.dnsResolve(host); return (local) ? - ("the host '" + host + "' is local, but local addresses are not accepted: " + ((ia == null) ? "null" : ia.getHostAddress())) : + ("the host '" + host + "' is local, but local addresses are not accepted: " + ((ia == null) ? "DNS lookup resulted in null (unknown host name)" : ia.getHostAddress())) : ("the host '" + host + "' is global, but global addresses are not accepted: " + ((ia == null) ? "null" : ia.getHostAddress())); }