From: Matt Nordhoff Date: Tue, 13 Nov 2018 14:52:01 +0000 (+0000) Subject: Remove trailing \n from runtime_error message X-Git-Tag: auth-4.2.0-alpha1~47^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7190%2Fhead;p=thirdparty%2Fpdns.git Remove trailing \n from runtime_error message And rewrite the message a bit. --- 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;