summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorMadelyn Olson <34459052+madolson@users.noreply.github.com>2020-12-23 19:06:25 -0800
committerGitHub <noreply@github.com>2020-12-23 19:06:25 -0800
commitefaf09ee4b6437c69c467acdb0c62a510207e993 (patch)
treeb8eb22c7360cb9db2959b5cb3f26813698c3a3e7 /src/sort.c
parent55abd1c6d078e0d30ee01a819f069fa7737c3dc2 (diff)
downloadredis-efaf09ee4b6437c69c467acdb0c62a510207e993.tar.gz
Flow through the error handling path for most errors (#8226)
Properly throw errors for invalid replication stream and support https://github.com/redis/redis/pull/8217
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c
index aeef53e6a..44637720b 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -256,7 +256,7 @@ void sortCommand(client *c) {
getop++;
j++;
} else {
- addReply(c,shared.syntaxerr);
+ addReplyErrorObject(c,shared.syntaxerr);
syntax_error++;
break;
}
@@ -279,7 +279,7 @@ void sortCommand(client *c) {
sortval->type != OBJ_ZSET)
{
listRelease(operations);
- addReply(c,shared.wrongtypeerr);
+ addReplyErrorObject(c,shared.wrongtypeerr);
return;
}