diff options
author | avimredis <64842313+avimredis@users.noreply.github.com> | 2021-04-26 21:11:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 21:11:38 +0300 |
commit | 4bfcf4654a3ea3253dcce8ef6a8d290f1d6dce72 (patch) | |
tree | 361f17b9db3f3d4d5b944331688579307fb44762 /src/geo.c | |
parent | ebfbb091096b6f36cf82e9f6e6583b10fd5b5acb (diff) | |
download | redis-4bfcf4654a3ea3253dcce8ef6a8d290f1d6dce72.tar.gz |
Fix error reply of GEOSEARCHSTORE unsupported args (#8865)
When [WITHCOORD] [WITHDIST] [WITHHASH] are used, the error mentioned GEORADIUS command
Diffstat (limited to 'src/geo.c')
-rw-r--r-- | src/geo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |