Unrecognized packetId error printing id in hex

This commit is contained in:
Xabier de Zuazo 2013-04-06 04:45:32 +02:00
parent 11b11f0dc3
commit 38f46998e3

View file

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