mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix error reply of GEOSEARCHSTORE unsupported args (#8865)
When [WITHCOORD] [WITHDIST] [WITHHASH] are used, the error mentioned GEORADIUS command
This commit is contained in:
parent
ebfbb09109
commit
4bfcf4654a
@ -651,9 +651,9 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) {
|
||||
|
||||
/* Trap options not compatible with STORE and STOREDIST. */
|
||||
if (storekey && (withdist || withhash || withcoords)) {
|
||||
addReplyError(c,
|
||||
"STORE option in GEORADIUS is not compatible with "
|
||||
"WITHDIST, WITHHASH and WITHCOORDS options");
|
||||
addReplyErrorFormat(c,
|
||||
"%s is not compatible with WITHDIST, WITHHASH and WITHCOORD options",
|
||||
flags & GEOSEARCHSTORE? "GEOSEARCHSTORE": "STORE option in GEORADIUS");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user