1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fix bug where unhandled error replies confuse the parser.

This commit is contained in:
Matt Ranney
2011-01-19 18:14:32 -08:00
parent 8787d81abf
commit 2d7869261a
3 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
Changelog Changelog
========= =========
## v0.5.2 - January 18, 2011
Fix bug where unhandled error replies confuse the parser.
## v0.5.1 - January 18, 2011 ## v0.5.1 - January 18, 2011
Fix bug where subscribe commands would not handle redis-server startup error properly. Fix bug where subscribe commands would not handle redis-server startup error properly.

View File

@@ -243,7 +243,9 @@ RedisClient.prototype.return_error = function (err) {
} else { } else {
console.log("node_redis: no callback to send error: " + err.message); 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 // this will probably not make it anywhere useful, but we might as well throw
throw err; process.nextTick(function () {
throw err;
});
} }
}; };

View File

@@ -1,5 +1,5 @@
{ "name" : "redis", { "name" : "redis",
"version" : "0.5.1", "version" : "0.5.2",
"description" : "Redis client library", "description" : "Redis client library",
"author": "Matt Ranney <mjr@ranney.com>", "author": "Matt Ranney <mjr@ranney.com>",
"contributors": [ "contributors": [