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

Merge branch 'jifeng-master'

This commit is contained in:
Bryce Baril
2013-04-27 08:25:39 -07:00
2 changed files with 3 additions and 1 deletions

View File

@@ -713,7 +713,7 @@ RedisClient.prototype.send_command = function (command, args, callback) {
if (command === 'set' || command === 'setex') {
if(args[args.length - 1] === undefined || args[args.length - 1] === null) {
var err = new Error('send_command: ' + command + ' value must not be undefined or null');
return callback(err);
return callback && callback(err);
}
}