Commit b6b00f35 authored by dejun.xdj's avatar dejun.xdj
Browse files

Return more accurate message when specified ID is invalid

parent 3c20b3fc
......@@ -999,11 +999,10 @@ void xaddCommand(client *c) {
maxlen_arg_idx = i;
} else {
/* If we are here is a syntax error or a valid ID. */
if (streamParseIDOrReply(NULL,c->argv[i],&id,0) == C_OK) {
if (streamParseIDOrReply(c,c->argv[i],&id,0) == C_OK) {
id_given = 1;
break;
} else {
addReply(c,shared.syntaxerr);
return;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment