1
0
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:
Ruben Bridgewater
2017-03-09 19:13:04 -03:00
parent e4ce21e12c
commit a2255d7fe2
3 changed files with 22 additions and 7 deletions

View File

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