mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
error generation format reverted to the new style after merge
This commit is contained in:
parent
b882056c93
commit
beb7756dcb
@ -327,8 +327,7 @@ void zaddGenericCommand(redisClient *c, robj *key, robj *ele, double score, int
|
|||||||
score += *(double*)dictGetEntryVal(de);
|
score += *(double*)dictGetEntryVal(de);
|
||||||
|
|
||||||
if (isnan(score)) {
|
if (isnan(score)) {
|
||||||
addReplySds(c,
|
addReplyError(c,"resulting score is not a number (NaN)");
|
||||||
sdsnew("-ERR resulting score is not a number (NaN)\r\n"));
|
|
||||||
/* Note that we don't need to check if the zset may be empty and
|
/* 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
|
* should be removed here, as we can only obtain Nan as score if
|
||||||
* there was already an element in the sorted set. */
|
* there was already an element in the sorted set. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user