clarify type and class hex vs dec

This commit is contained in:
AJ ONeal 2017-02-11 09:56:17 -07:00
parent 7f673f6fbf
commit 8643e6e3c7
1 changed files with 2 additions and 2 deletions

View File

@ -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)"
);