From beb7756dcbb44099352abcb3368fcd3d23b55782 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 22 Sep 2010 16:10:13 +0200 Subject: [PATCH] error generation format reverted to the new style after merge --- src/t_zset.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/t_zset.c b/src/t_zset.c index eeb8dab3..93ade5aa 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -327,8 +327,7 @@ void zaddGenericCommand(redisClient *c, robj *key, robj *ele, double score, int score += *(double*)dictGetEntryVal(de); if (isnan(score)) { - addReplySds(c, - sdsnew("-ERR resulting score is not a number (NaN)\r\n")); + addReplyError(c,"resulting score is not a number (NaN)"); /* Note that we don't need to check if the zset may be empty and * should be removed here, as we can only obtain Nan as score if * there was already an element in the sorted set. */