From 8643e6e3c715568610f0ac90619c4fb21f350bbd Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 11 Feb 2017 09:56:17 -0700 Subject: [PATCH] clarify type and class hex vs dec --- dns.rdata.parse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns.rdata.parse.js b/dns.rdata.parse.js index 1f8caf4..afd7bd9 100644 --- a/dns.rdata.parse.js +++ b/dns.rdata.parse.js @@ -11,14 +11,14 @@ exports.DNS_RDATA_PARSE = function (ab, packet, record) { if (!record.className) { - throw new Error("Support for DNS Class " + record.class.toString(16) + "(" + record.class + ")" + throw new Error("Support for DNS Class 0x" + record.class.toString(16) + " (" + record.class + ")" + " is not implemented yet. Open an issue if you actually need support" + " (i.e. you're not working with a malformed packet)" ); } if (!record.typeName) { - throw new Error("Support for DNS Type " + record.type.toString(16) + "(" + record.type + ")" + throw new Error("Support for DNS Type 0x" + record.type.toString(16) + " (" + record.type + ")" + " is not implemented yet. Open an issue if you actually need support" + " (i.e. you're not working with a malformed packet)" );