Unverified Commit e18068d9 authored by Itamar Haber's avatar Itamar Haber Committed by GitHub
Browse files

Use addReplyErrorObject with shared.syntaxerror (#8248)

parent c4b52fc7
...@@ -1208,7 +1208,7 @@ void copyCommand(client *c) { ...@@ -1208,7 +1208,7 @@ void copyCommand(client *c) {
selectDb(c,srcid); /* Back to the source DB */ selectDb(c,srcid); /* Back to the source DB */
j++; /* Consume additional arg. */ j++; /* Consume additional arg. */
} else { } else {
addReply(c, shared.syntaxerr); addReplyErrorObject(c,shared.syntaxerr);
return; return;
} }
} }
......
...@@ -620,7 +620,7 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) { ...@@ -620,7 +620,7 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) {
bybox = 1; bybox = 1;
i += 3; i += 3;
} else { } else {
addReply(c, shared.syntaxerr); addReplyErrorObject(c,shared.syntaxerr);
return; 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