diff --git a/lib/index.js b/lib/index.js index 1919a207..d50ce898 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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) + ")"); } };