Skip to content

Commit

Permalink
fix the return
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-binbin committed Jul 17, 2023
1 parent 8876d60 commit f493955
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/cmd_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,8 @@ class CommandXRead : public Commander,
std::vector<StreamEntry> result;
auto s = stream_db.Range(streams_[i], options, &result);
if (!s.ok() && !s.IsNotFound()) {
return {Status::RedisExecErr, s.ToString()};
conn_->Reply(redis::Error("ERR " + s.ToString()));
return;
}

if (result.size() > 0) {
Expand Down

0 comments on commit f493955

Please sign in to comment.