]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Include failure message when creating DSRCs
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 3 Jan 2023 15:02:54 +0000 (16:02 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Tue, 10 Jan 2023 14:50:36 +0000 (15:50 +0100)
pdns/dnssecinfra.cc

index 690017ffba230203af25d70ac4e6c924053bec39..971a0b39f2272e89e60232877c52e2e176d388fb 100644 (file)
@@ -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;