Permalink
Browse files

Fix bug where unhandled error replies confuse the parser.

  • Loading branch information...
1 parent 8787d81 commit 2d7869261a1cc3264d2b1b56b28fc5a24d264504 @mranney mranney committed Jan 20, 2011
Showing with 8 additions and 2 deletions.
  1. +4 −0 changelog.md
  2. +3 −1 index.js
  3. +1 −1 package.json
View
@@ -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.
View
@@ -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;
+ });
}
};
View
@@ -1,5 +1,5 @@
{ "name" : "redis",
- "version" : "0.5.1",
+ "version" : "0.5.2",
"description" : "Redis client library",
"author": "Matt Ranney <mjr@ranney.com>",
"contributors": [

0 comments on commit 2d78692

Please sign in to comment.