From 2d7869261a1cc3264d2b1b56b28fc5a24d264504 Mon Sep 17 00:00:00 2001 From: Matt Ranney Date: Wed, 19 Jan 2011 18:14:32 -0800 Subject: [PATCH] Fix bug where unhandled error replies confuse the parser. --- changelog.md | 4 ++++ index.js | 4 +++- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index cbe8a2afcb..99a2da98f1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,10 @@ Changelog ========= +## v0.5.2 - January 18, 2011 + +Fix bug where unhandled error replies confuse the parser. + ## v0.5.1 - January 18, 2011 Fix bug where subscribe commands would not handle redis-server startup error properly. diff --git a/index.js b/index.js index e5955f67b3..04d9323c2c 100644 --- a/index.js +++ b/index.js @@ -243,7 +243,9 @@ RedisClient.prototype.return_error = function (err) { } else { console.log("node_redis: no callback to send error: " + err.message); // this will probably not make it anywhere useful, but we might as well throw - throw err; + process.nextTick(function () { + throw err; + }); } }; diff --git a/package.json b/package.json index 85d1768ef1..0c8a143af6 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name" : "redis", - "version" : "0.5.1", + "version" : "0.5.2", "description" : "Redis client library", "author": "Matt Ranney ", "contributors": [