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 error messages not being visible in the stack trace of AbortErrors
This commit is contained in:
@@ -870,7 +870,7 @@ describe('The node_redis client', function () {
|
||||
client.on('error', function (err) {
|
||||
assert.strictEqual(err.message, 'Protocol error, got "a" as reply type byte. Please report this.');
|
||||
assert.strictEqual(err, error);
|
||||
assert(err instanceof redis.ReplyError);
|
||||
assert(err instanceof redis.ParserError);
|
||||
// After the hard failure work properly again. The set should have been processed properly too
|
||||
client.get('foo', function (err, res) {
|
||||
assert.strictEqual(res, 'bar');
|
||||
|
Reference in New Issue
Block a user