summaryrefslogtreecommitdiff
path: root/src/t_set.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/t_set.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/t_set.c')
-rw-r--r--src/t_set.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_set.c b/src/t_set.c
index fd9f4442a..64bbbd3a0 100644
--- a/src/t_set.c
+++ b/src/t_set.c
@@ -605,7 +605,7 @@ void spopCommand(client *c) {
spopWithCountCommand(c);
return;
} else if (c->argc > 3) {
- addReply(c,shared.syntaxerr);
+ addReplyErrorObject(c,shared.syntaxerr);
return;
}
@@ -801,7 +801,7 @@ void srandmemberCommand(client *c) {
srandmemberWithCountCommand(c);
return;
} else if (c->argc > 3) {
- addReply(c,shared.syntaxerr);
+ addReplyErrorObject(c,shared.syntaxerr);
return;
}