From: Remi Gacogne Date: Mon, 8 Feb 2021 15:25:31 +0000 (+0100) Subject: dnsdist: Report the error when the GnuTLS handshake failed X-Git-Tag: dnsdist-1.6.0-alpha2~11^2~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e68953655b65a30848046dbcdfa62fd413d1924b;p=thirdparty%2Fpdns.git dnsdist: Report the error when the GnuTLS handshake failed --- 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);