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

@@ -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;
});
}
};