Fix error reply of GEOSEARCHSTORE unsupported args
When [WITHCOORD] [WITHDIST] [WITHHASH] are used, the error mentioned GEORADIUS command
@@ -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;
}
