1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Do not wrap errors into other errors. The trace is going to be manipulated that way.

This commit is contained in:
Ruben Bridgewater
2015-09-07 14:55:57 +02:00
parent 4e42fb70f3
commit 0925885a88
2 changed files with 4 additions and 4 deletions

View File

@@ -231,8 +231,8 @@ describe("The 'multi' method", function () {
client.multi().set("foo").exec(function (err, reply) {
assert(Array.isArray(err), "err should be an array");
assert.equal(2, err.length, "err should have 2 items");
assert(err[0].message.match(/ERR/), "First error message should contain ERR");
assert(err[1].message.match(/EXECABORT/), "First error message should contain EXECABORT");
assert(err[0].message.match(/^ERR/), "First error message should begin with ERR");
assert(err[1].message.match(/^EXECABORT/), "First error message should begin with EXECABORT");
return done();
});
});