From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 5 Jun 2020 11:52:50 +0000 (+0200)
Subject: Improve an error message in chat()
X-Git-Tag: v_3_0_29~319
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/man-page/faq/@default-cgi@/@default-cgi@send-stylesheet?a=commitdiff_plain;h=13c6883df24abaaf6adbbefece5dc20a899f3db0;p=privoxy.git

Improve an error message in chat()

... that is emitted when forwarding an encrypted
request through a HTTP proxy fails.

Sponsored by: Robert Klemme
---

diff --git a/jcc.c b/jcc.c
index d0f0b34b..0654f808 100644
--- a/jcc.c
+++ b/jcc.c
@@ -3889,8 +3889,9 @@ static void chat(struct client_state *csp)
              */
             if (!tunnel_established_successfully(server_response, (unsigned int)len))
             {
-               log_error(LOG_LEVEL_ERROR, "Forwarder hasn't established "
-                  "connection with destination server.");
+               log_error(LOG_LEVEL_ERROR,
+                  "The forwarder %s failed to establish a connection with %s",
+                  fwd->forward_host, http->host);
                rsp = error_response(csp, "connect-failed");
                if (rsp)
                {