better unsupported message code error message

This commit is contained in:
brianc 2010-09-29 23:58:01 -05:00
parent c5b1d95ca0
commit 7c9de7f442

View File

@ -70,7 +70,7 @@ p.parse = function() {
case UTF8.S:
return this.parseS();
default:
throw new Error("Unsupported message ID: " + Buffer([messageID]).toString('utf8'));
throw new Error("Unsupported message ID: " + Buffer([messageID]).toString('utf8') + " (" + messageID.toString(16) + ")");
}
};