From 0ac7395a623fe9679a693c5007afbd2c8fea2f14 Mon Sep 17 00:00:00 2001 From: Charles Pick Date: Fri, 21 Nov 2014 22:25:52 +0000 Subject: [PATCH] fix error messages, no more RequestError: null --- lib/transport/binary/protocol/operation.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/transport/binary/protocol/operation.js b/lib/transport/binary/protocol/operation.js index 99410e1..f2e1130 100644 --- a/lib/transport/binary/protocol/operation.js +++ b/lib/transport/binary/protocol/operation.js @@ -805,7 +805,6 @@ Operation.prototype.parseArray = function (buffer, offset, context, fieldName, r Operation.prototype.parseError = function (buffer, offset, context, fieldName, reader) { var err = new errors.Request(); err.previous = []; - // remove any ops we were expecting to run. this.readOps = []; @@ -822,11 +821,9 @@ Operation.prototype.parseError = function (buffer, offset, context, fieldName, r if (data.hasMore) { prev = new errors.Request(); err.previous.push(prev); + this.stack.pop(); this.stack.push(prev); readItem.call(this); - this.readOps.push(function () { - this.stack.pop(); - }); } else { this.readBytes('javaStackTrace', function (data) {