Improve an error message in chat()
authorFabian Keil <fk@fabiankeil.de>
Fri, 5 Jun 2020 11:52:50 +0000 (13:52 +0200)
committerFabian Keil <fk@fabiankeil.de>
Fri, 5 Jun 2020 13:58:24 +0000 (15:58 +0200)
... that is emitted when forwarding an encrypted
request through a HTTP proxy fails.

Sponsored by: Robert Klemme

jcc.c

diff --git a/jcc.c b/jcc.c
index d0f0b34..0654f80 100644 (file)
--- 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)
                {