Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Suppressing stackTraces in proxyError message for harmless errors See: http://www.yacy-forum.de/viewtopic.php?t=1504

theli99fb26e49960
diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.java
index 9ed502dd5..7055041db 100644
--- a/source/de/anomic/http/httpdProxyHandler.java
+++ b/source/de/anomic/http/httpdProxyHandler.java
@@ -1255,7 +1255,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
int httpStatusCode = 404;
String httpStatusText = null;
String errorMessage = null;
- Exception errorExc = e;
+ Exception errorExc = null;
boolean unknownError = false;
if (e instanceof ConnectException) {
@@ -1289,6 +1289,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
} else {
errorMessage = "Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage();
unknownError = true;
+ errorExc = e;
}
}