From: Mukund Sivaraman Date: Thu, 31 Jan 2013 00:16:15 +0000 (+0530) Subject: [2390] Include bad data in the exception message X-Git-Tag: bind10-1.0.0-rc-release~48^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11f5ae7cddca20ae003331cd69b817be4aea790c;p=thirdparty%2Fkea.git [2390] Include bad data in the exception message --- diff --git a/src/lib/dns/rdata/generic/mx_15.cc b/src/lib/dns/rdata/generic/mx_15.cc index c2001ca76d..f30687033a 100644 --- a/src/lib/dns/rdata/generic/mx_15.cc +++ b/src/lib/dns/rdata/generic/mx_15.cc @@ -70,7 +70,8 @@ MX::MX(const std::string& mx_str) : const uint32_t num = lexer.getNextToken(MasterToken::NUMBER).getNumber(); if (num > 65535) { - isc_throw(InvalidRdataText, "Invalid MX preference"); + isc_throw(InvalidRdataText, "Invalid MX preference in: " + << mx_str); } preference_ = static_cast(num); @@ -110,7 +111,7 @@ MX::MX(MasterLexer& lexer, const Name* origin, { const uint32_t num = lexer.getNextToken(MasterToken::NUMBER).getNumber(); if (num > 65535) { - isc_throw(InvalidRdataText, "Invalid MX preference"); + isc_throw(InvalidRdataText, "Invalid MX preference: " << num); } preference_ = static_cast(num);