From: Otto Moerbeek Date: Wed, 13 May 2020 12:27:42 +0000 (+0200) Subject: Less negatives in error messages improves readability. X-Git-Tag: dnsdist-1.5.0-rc3~60^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0590f3a32d5b926789412fefc828bf523c9047cb;p=thirdparty%2Fpdns.git Less negatives in error messages improves readability. --- 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?