diff options
author | Madelyn Olson <34459052+madolson@users.noreply.github.com> | 2020-12-23 19:06:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 19:06:25 -0800 |
commit | efaf09ee4b6437c69c467acdb0c62a510207e993 (patch) | |
tree | b8eb22c7360cb9db2959b5cb3f26813698c3a3e7 /src/t_string.c | |
parent | 55abd1c6d078e0d30ee01a819f069fa7737c3dc2 (diff) | |
download | redis-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_string.c')
-rw-r--r-- | src/t_string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/t_string.c b/src/t_string.c index 3ecc473bd..2792f5557 100644 --- a/src/t_string.c +++ b/src/t_string.c @@ -153,7 +153,7 @@ void setCommand(client *c) { expire = next; j++; } else { - addReply(c,shared.syntaxerr); + addReplyErrorObject(c,shared.syntaxerr); return; } } @@ -528,7 +528,7 @@ void stralgoCommand(client *c) { if (!strcasecmp(c->argv[1]->ptr,"lcs")) { stralgoLCS(c); } else { - addReply(c,shared.syntaxerr); + addReplyErrorObject(c,shared.syntaxerr); } } @@ -589,7 +589,7 @@ void stralgoLCS(client *c) { b = objb->ptr; j += 2; } else { - addReply(c,shared.syntaxerr); + addReplyErrorObject(c,shared.syntaxerr); goto cleanup; } } |