From e68953655b65a30848046dbcdfa62fd413d1924b Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 8 Feb 2021 16:25:31 +0100 Subject: [PATCH] dnsdist: Report the error when the GnuTLS handshake failed --- pdns/tcpiohandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/tcpiohandler.cc b/pdns/tcpiohandler.cc index 6c57485d8d..76a18e5611 100644 --- a/pdns/tcpiohandler.cc +++ b/pdns/tcpiohandler.cc @@ -839,7 +839,7 @@ public: return IOState::NeedRead; } else if (gnutls_error_is_fatal(ret) || ret == GNUTLS_E_WARNING_ALERT_RECEIVED) { - throw std::runtime_error("Error accepting a new connection"); + throw std::runtime_error("Error accepting a new connection: " + std::string(gnutls_strerror(ret))); } } while (ret == GNUTLS_E_INTERRUPTED); -- 2.47.2