1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Fix js parser sending non-Errors

This commit is contained in:
Ruben Bridgewater
2015-09-02 00:43:08 +02:00
parent 614366ffeb
commit 52db91c753
2 changed files with 5 additions and 8 deletions

View File

@@ -177,8 +177,7 @@ ReplyParser.prototype.execute = function (buffer) {
if (ret === null) {
break;
}
this.send_error(ret);
this.send_error(new Error(ret));
} else if (type === 58) { // :
ret = this._parseResult(type);