From b47a9990ac3f3ff2d92dc7ff1e957a8d01f8c6b8 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 20 Feb 2014 08:21:31 +0200 Subject: [PATCH] Use Err# prefix --- pdns/dns.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pdns/dns.cc b/pdns/dns.cc index 8ddbab5660..47fb275a99 100644 --- a/pdns/dns.cc +++ b/pdns/dns.cc @@ -19,11 +19,11 @@ std::vector RCode::rcodes_s = boost::assign::list_of ("RR Set that should exist does not") ("Server Not Authoritative for zone") ("Name not contained in zone") - ("unassigned") - ("unassigned") - ("unassigned") - ("unassigned") - ("unassigned") + ("Err#11") + ("Err#12") + ("Err#13") + ("Err#14") + ("Err#15") ("Bad OPT Version") ("TSIG Signature Failure") ("Key not recognized") @@ -34,7 +34,7 @@ std::vector RCode::rcodes_s = boost::assign::list_of std::string RCode::to_s(unsigned short rcode) { if (rcode > 21) - return boost::lexical_cast(rcode); + return std::string("Err#")+boost::lexical_cast(rcode); return RCode::rcodes_s[rcode]; } -- 2.47.3