You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Improve error handling
Arguments are now passed to an command error in case they exist An error is only emitted if that very same error is not already handled in a callback
This commit is contained in:
@@ -183,7 +183,7 @@ describe('client authentication', function () {
|
||||
}
|
||||
});
|
||||
client.on('reconnecting', function (params) {
|
||||
assert.strictEqual(params.error.message, 'Stream connection closed');
|
||||
assert.strictEqual(params.error, null);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user