mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Return more accurate message when specified ID is invalid
This commit is contained in:
parent
3c20b3fc24
commit
b6b00f35ca
@ -999,11 +999,10 @@ void xaddCommand(client *c) {
|
|||||||
maxlen_arg_idx = i;
|
maxlen_arg_idx = i;
|
||||||
} else {
|
} else {
|
||||||
/* If we are here is a syntax error or a valid ID. */
|
/* 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;
|
id_given = 1;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
addReply(c,shared.syntaxerr);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user