From 0590f3a32d5b926789412fefc828bf523c9047cb Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 13 May 2020 14:27:42 +0200 Subject: [PATCH] Less negatives in error messages improves readability. --- pdns/dnsdistdist/dnsdist-secpoll.cc | 2 +- pdns/recursordist/test-secpoll_cc.cc | 2 +- pdns/secpoll-auth.cc | 2 +- pdns/secpoll-recursor.cc | 4 ++-- pdns/secpoll.cc | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pdns/dnsdistdist/dnsdist-secpoll.cc b/pdns/dnsdistdist/dnsdist-secpoll.cc index 179779f15d..358f943b18 100644 --- a/pdns/dnsdistdist/dnsdist-secpoll.cc +++ b/pdns/dnsdistdist/dnsdist-secpoll.cc @@ -234,7 +234,7 @@ void doSecPoll(const std::string& suffix) } if (releaseVersion) { - warnlog("Could not retrieve security status update for '%s' on %s", pkgv, queriedName); + warnlog("Failed to retrieve security status update for '%s' on %s", pkgv, queriedName); } else if (!g_secPollDone) { infolog("Not validating response for security status update, this is a non-release version."); diff --git a/pdns/recursordist/test-secpoll_cc.cc b/pdns/recursordist/test-secpoll_cc.cc index b1f89dd345..07660b08a8 100644 --- a/pdns/recursordist/test-secpoll_cc.cc +++ b/pdns/recursordist/test-secpoll_cc.cc @@ -20,7 +20,7 @@ static bool checkBasicMessage1(const PDNSException& ex) static bool checkBasicMessage2(const PDNSException& ex) { - BOOST_CHECK_EQUAL(ex.reason, "RCODE was not NOERROR but " + RCode::to_s(1)); + BOOST_CHECK_EQUAL(ex.reason, "RCODE was " + RCode::to_s(1)); return true; } diff --git a/pdns/secpoll-auth.cc b/pdns/secpoll-auth.cc index 65ab81d352..435051a136 100644 --- a/pdns/secpoll-auth.cc +++ b/pdns/secpoll-auth.cc @@ -63,7 +63,7 @@ void doSecPoll(bool first) processSecPoll(res, ret, security_status, security_message); } catch(const PDNSException &pe) { S.set("security-status", security_status); - g_log< &ret, int &secPo secPollMessage.clear(); if (res != 0) { // not NOERROR setSecPollToUnknownOnOK(secPollStatus); - throw PDNSException("RCODE was not NOERROR but " + RCode::to_s(res)); + throw PDNSException("RCODE was " + RCode::to_s(res)); } if (ret.empty()) { // empty NOERROR... wat? -- 2.47.2