Use addReplyErrorObject with shared.syntaxerror (#8248)

This commit is contained in:
Itamar Haber
2020-12-25 18:27:30 +02:00
committed by GitHub
parent c4b52fc7c9
commit e18068d9d8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1208,7 +1208,7 @@ void copyCommand(client *c) {
selectDb(c,srcid); /* Back to the source DB */
j++; /* Consume additional arg. */
} else {
addReply(c, shared.syntaxerr);
addReplyErrorObject(c,shared.syntaxerr);
return;
}
}
+1 -1
View File
@@ -620,7 +620,7 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) {
bybox = 1;
i += 3;
} else {
addReply(c, shared.syntaxerr);
addReplyErrorObject(c,shared.syntaxerr);
return;
}
}