Skip to content

Commit

Permalink
fix no group or stream error response
Browse files Browse the repository at this point in the history
  • Loading branch information
LindaSummer committed Jun 22, 2024
1 parent 7101e59 commit 15af758
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/cmd_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ class CommandAutoClaim : public Commander {
StreamAutoClaimResult result;
auto s = stream_db.AutoClaim(key_name_, group_name_, consumer_name_, options_, &result);
if (!s.ok()) {
if (s.IsNotFound()) {
return {Status::RedisExecErr,
"NOGROUP No such key '" + key_name_ + "' or consumer group '" + group_name_ + "'"};
}
return {Status::RedisExecErr, s.ToString()};
}
return sendResults(conn, result, output);
Expand Down

0 comments on commit 15af758

Please sign in to comment.