You've already forked node-redis
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user