diff --git a/src/acl.c b/src/acl.c index 607512beb..1d65faf69 100644 --- a/src/acl.c +++ b/src/acl.c @@ -2819,8 +2819,7 @@ void aclCommand(client *c) { sds username = c->argv[2]->ptr; /* Check username validity. */ if (ACLStringHasSpaces(username,sdslen(username))) { - addReplyErrorFormat(c, - "Usernames can't contain spaces or null characters"); + addReplyError(c, "Usernames can't contain spaces or null characters"); return; } diff --git a/src/geo.c b/src/geo.c index d168d9841..1004193e0 100644 --- a/src/geo.c +++ b/src/geo.c @@ -690,7 +690,7 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) { } if (any && !count) { - addReplyErrorFormat(c, "the ANY argument requires COUNT argument"); + addReplyError(c, "the ANY argument requires COUNT argument"); return; } diff --git a/src/replication.c b/src/replication.c index e4b7c42e1..d4a77b57e 100644 --- a/src/replication.c +++ b/src/replication.c @@ -1259,7 +1259,7 @@ void replconfCommand(client *c) { int filter_count, i; sds *filters; if (!(filters = sdssplitargs(c->argv[j+1]->ptr, &filter_count))) { - addReplyErrorFormat(c, "Missing rdb-filter-only values"); + addReplyError(c, "Missing rdb-filter-only values"); return; } /* By default filter out all parts of the rdb */ diff --git a/src/script_lua.c b/src/script_lua.c index e96d8eeeb..a98b1da1b 100644 --- a/src/script_lua.c +++ b/src/script_lua.c @@ -602,7 +602,7 @@ static void luaReplyToRedisReply(client *c, client* script_client, lua_State *lu * to push 4 elements to the stack. On failure, return error. * Notice that we need, in the worst case, 4 elements because returning a map might * require push 4 elements to the Lua stack.*/ - addReplyErrorFormat(c, "reached lua stack limit"); + addReplyError(c, "reached lua stack limit"); lua_pop(lua,1); /* pop the element from the stack */ return; }