You've already forked node-redis
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:
4
index.js
4
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;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user