summaryrefslogtreecommitdiff
path: root/src/geo.c
diff options
context:
space:
mode:
authorItamar Haber <itamar@redislabs.com>2020-12-25 18:27:30 +0200
committerGitHub <noreply@github.com>2020-12-25 18:27:30 +0200
commite18068d9d83e6c7298b5501ffabfdb7709984fc0 (patch)
treebe88093a23110d913460b5b0444a4bb2d39ee70b /src/geo.c
parentc4b52fc7c9e77fb1f2719d2cb5b9977b90698721 (diff)
downloadredis-e18068d9d83e6c7298b5501ffabfdb7709984fc0.tar.gz
Use addReplyErrorObject with shared.syntaxerror (#8248)
Diffstat (limited to 'src/geo.c')
-rw-r--r--src/geo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geo.c b/src/geo.c
index 75a88398e..417bf897e 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -620,7 +620,7 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) {
bybox = 1;
i += 3;
} else {
- addReply(c, shared.syntaxerr);
+ addReplyErrorObject(c,shared.syntaxerr);
return;
}
}