summaryrefslogtreecommitdiff
path: root/src/geo.c
diff options
context:
space:
mode:
authoravimredis <64842313+avimredis@users.noreply.github.com>2021-04-26 21:11:38 +0300
committerGitHub <noreply@github.com>2021-04-26 21:11:38 +0300
commit4bfcf4654a3ea3253dcce8ef6a8d290f1d6dce72 (patch)
tree361f17b9db3f3d4d5b944331688579307fb44762 /src/geo.c
parentebfbb091096b6f36cf82e9f6e6583b10fd5b5acb (diff)
downloadredis-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/geo.c b/src/geo.c
index 7c75738a2..c53df794e 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -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;
}