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; }