diff --git a/lib/message.js b/lib/message.js index a9620b2..759e72b 100644 --- a/lib/message.js +++ b/lib/message.js @@ -70,7 +70,7 @@ LoginMessage = function(buffer) { Message.call(this, buffer); this.type = MESSAGE_TYPE.LOGIN; this.status = this.readByte(); - this.error = (this.status === 0 ? false : true ); + this.error = (this.status !== 0 ); if(this.error === false) { this.serverId = this.readInt(); this.connectionId = this.readLong(); @@ -114,7 +114,6 @@ QueryMessage = function(buffer) { if(this.fieldsPresent & PRESENT.APP_STATUS) { this.appStatusString = this.readString(); } - this.exception this.exceptionLength = this.readInt(); if(this.fieldsPresent & PRESENT.EXCEPTION) { this.exception = this.readException(1); @@ -143,7 +142,6 @@ qm.toString = function() { error : this.error, uid : this.uid, fieldsPresent : this.fieldsPresent, - status : this.status, statusString : this.statusString, appStatus : this.appStatus, appStatusString : this.appStatusString,