diff options
author | antirez <antirez@gmail.com> | 2014-08-18 11:15:50 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-08-18 11:15:50 +0200 |
commit | a6edfceaa876ac6f21d7995aaf2380ab0eb50cbe (patch) | |
tree | 3159414a02ec7742714d6b7f72d86da9fbfb0c08 /src/t_string.c | |
parent | 18ca831830b3fdcae0c3aade84c88d4204db6533 (diff) | |
download | redis-a6edfceaa876ac6f21d7995aaf2380ab0eb50cbe.tar.gz |
Fix invalid expire error for SET family commands.
Diffstat (limited to 'src/t_string.c')
-rw-r--r-- | src/t_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_string.c b/src/t_string.c index 397363c5c..8a4d5f166 100644 --- a/src/t_string.c +++ b/src/t_string.c @@ -69,7 +69,7 @@ void setGenericCommand(redisClient *c, int flags, robj *key, robj *val, robj *ex if (getLongLongFromObjectOrReply(c, expire, &milliseconds, NULL) != REDIS_OK) return; if (milliseconds <= 0) { - addReplyError(c,"invalid expire time in SETEX"); + addReplyErrorFormat(c,"invalid expire time in %s",c->cmd->name); return; } if (unit == UNIT_SECONDS) milliseconds *= 1000; |