1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Add redis error codes to the errors

This commit is contained in:
Ruben Bridgewater
2015-09-18 06:28:14 +02:00
parent 7e689253f9
commit 40c037eaf4
3 changed files with 15 additions and 1 deletions

View File

@@ -52,7 +52,11 @@ describe("The 'eval' method", function () {
it('converts lua error to an error response', function (done) {
helper.serverVersionAtLeast.call(this, client, [2, 5, 0]);
client.eval("return {err='this is an error'}", 0, helper.isError(done));
client.eval("return {err='this is an error'}", 0, function(err) {
assert(err.code === undefined);
helper.isError()(err);
done();
});
});
it('represents a lua table appropritely', function (done) {