diff --git a/src/hyperloglog.c b/src/hyperloglog.c index d32a94be239afd1b0bf5512b7069f37c0729108c..02fd2728a9495a2292d7603810d3a986527a7da2 100644 --- a/src/hyperloglog.c +++ b/src/hyperloglog.c @@ -464,7 +464,9 @@ int isHLLObjectOrReply(redisClient *c, robj *o) { /* If this is a string representing an HLL, the size should match * exactly. */ if (stringObjectLen(o) != REDIS_HLL_SIZE) { - addReplyErrorFormat(c, "Key is not a valid HyperLogLog string value."); + addReplySds(c, + sdsnew("-WRONGTYPE Key is not a valid " + "HyperLogLog string value.\r\n")); return REDIS_ERR; } return REDIS_OK;