]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Remove trailing \n from runtime_error message 7190/head
authorMatt Nordhoff <mnordhoff@mattnordhoff.com>
Tue, 13 Nov 2018 14:52:01 +0000 (14:52 +0000)
committerMatt Nordhoff <mnordhoff@mattnordhoff.com>
Tue, 13 Nov 2018 14:52:54 +0000 (14:52 +0000)
And rewrite the message a bit.

pdns/dnssecinfra.cc

index 9eec20c21e30a158881279219f078a958937c24c..186463d740832b90fabfc82c634118f23866472d 100644 (file)
@@ -448,7 +448,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 a DS of unknown digest type " + std::to_string(digest)+"\n");
+    throw std::runtime_error("Asked to create (C)DS record of unknown digest type " + std::to_string(digest));
   }
   
   dsrc.d_algorithm = drc.d_algorithm;