workers: fix ErrorResultPacket.

This commit is contained in:
Christopher Jeffrey 2017-08-17 09:56:22 -07:00
parent a91bd5c958
commit 411db44a76
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -252,6 +252,13 @@ Object.setPrototypeOf(ErrorResultPacket.prototype, ErrorPacket.prototype);
ErrorResultPacket.prototype.cmd = packetTypes.ERRORRESULT;
ErrorResultPacket.fromRaw = function fromRaw(data) {
const packet = new ErrorResultPacket();
const p = ErrorPacket.fromRaw(data);
packet.error = p.error;
return packet;
};
/**
* CheckPacket
* @constructor