From 73c9bf8cc3bafe5eb6e9904a0e6ab45a8e719278 Mon Sep 17 00:00:00 2001 From: Matt Nordhoff Date: Tue, 13 Nov 2018 14:52:01 +0000 Subject: [PATCH] Remove trailing \n from runtime_error message And rewrite the message a bit. --- pdns/dnssecinfra.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnssecinfra.cc b/pdns/dnssecinfra.cc index 9eec20c21e..186463d740 100644 --- a/pdns/dnssecinfra.cc +++ b/pdns/dnssecinfra.cc @@ -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; -- 2.47.2