From: Fred Morcos Date: Tue, 3 Jan 2023 15:02:54 +0000 (+0100) Subject: Include failure message when creating DSRCs X-Git-Tag: dnsdist-1.8.0-rc1~124^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=793bc32f404cd6d5624074a0a28a9265df3f4652;p=thirdparty%2Fpdns.git Include failure message when creating DSRCs --- diff --git a/pdns/dnssecinfra.cc b/pdns/dnssecinfra.cc index 690017ffba..971a0b39f2 100644 --- a/pdns/dnssecinfra.cc +++ b/pdns/dnssecinfra.cc @@ -493,7 +493,7 @@ DSRecordContent makeDSFromDNSKey(const DNSName& qname, const DNSKEYRecordContent dsrc.d_digest = dpk->hash(toHash); } catch(const std::exception& e) { - throw std::runtime_error("Asked to create (C)DS record of unknown digest type " + std::to_string(digest)); + throw std::runtime_error("Asked to create (C)DS record of unknown digest type " + std::to_string(digest) + ": " + e.what()); } dsrc.d_algorithm = drc.d_algorithm;