clarify type and class hex vs dec
This commit is contained in:
parent
7f673f6fbf
commit
8643e6e3c7
|
@ -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)"
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue