Skip to content

Commit

Permalink
Return error from CommandZRangeGeneric in case of unexpected range_ty…
Browse files Browse the repository at this point in the history
…pe (#1430)
  • Loading branch information
torwig committed May 8, 2023
1 parent c985137 commit 41b4273
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/cmd_zset.cc
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ class CommandZRangeGeneric : public Commander {
}
return Status::OK();
}

return {Status::RedisParseErr, "unexpected range type"};
}

private:
Expand Down

0 comments on commit 41b4273

Please sign in to comment.