Unverified Commit 4bfcf465 authored by avimredis's avatar avimredis Committed by GitHub
Browse files

Fix error reply of GEOSEARCHSTORE unsupported args (#8865)

When [WITHCOORD] [WITHDIST] [WITHHASH] are used, the error mentioned GEORADIUS command
parent ebfbb091
...@@ -651,9 +651,9 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) { ...@@ -651,9 +651,9 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) {
/* Trap options not compatible with STORE and STOREDIST. */ /* Trap options not compatible with STORE and STOREDIST. */
if (storekey && (withdist || withhash || withcoords)) { if (storekey && (withdist || withhash || withcoords)) {
addReplyError(c, addReplyErrorFormat(c,
"STORE option in GEORADIUS is not compatible with " "%s is not compatible with WITHDIST, WITHHASH and WITHCOORD options",
"WITHDIST, WITHHASH and WITHCOORDS options"); flags & GEOSEARCHSTORE? "GEOSEARCHSTORE": "STORE option in GEORADIUS");
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