From 38f46998e392d329b909ced6f169097d62a91388 Mon Sep 17 00:00:00 2001 From: Xabier de Zuazo Date: Sat, 6 Apr 2013 04:45:32 +0200 Subject: [PATCH] Unrecognized packetId error printing id in hex --- lib/protocol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protocol.js b/lib/protocol.js index e91df4a..0ef63ff 100644 --- a/lib/protocol.js +++ b/lib/protocol.js @@ -1239,7 +1239,7 @@ function parsePacket(buffer, isServer) { var packetInfo = get(packetId, isServer); if (packetInfo == null) { return { - error: new Error("Unrecognized packetId: " + packetId) + error: new Error("Unrecognized packetId: " + packetId + " (0x" + packetId.toString(16) + ")") } } var i, fieldInfo, read, readResults;