*) Suppressing stackTraces in proxyError message for harmless errors

See: http://www.yacy-forum.de/viewtopic.php?t=1504

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1108 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent c2fe3a1670
commit 99fb26e499

@ -1255,7 +1255,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
int httpStatusCode = 404; int httpStatusCode = 404;
String httpStatusText = null; String httpStatusText = null;
String errorMessage = null; String errorMessage = null;
Exception errorExc = e; Exception errorExc = null;
boolean unknownError = false; boolean unknownError = false;
if (e instanceof ConnectException) { if (e instanceof ConnectException) {
@ -1289,6 +1289,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
} else { } else {
errorMessage = "Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage(); errorMessage = "Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage();
unknownError = true; unknownError = true;
errorExc = e;
} }
} }

Loading…
Cancel
Save