Skip to content

Commit

Permalink
[redis proxy]: redis unsupported command message compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: duanhongyi <duanhongyi@doopai.com>
  • Loading branch information
duanhongyi committed Dec 19, 2024
1 parent 7582949 commit b8c3125
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,8 @@ SplitRequestPtr InstanceImpl::makeRequest(Common::Redis::RespValuePtr&& request,
if (handler == nullptr) {
stats_.unsupported_command_.inc();
callbacks.onResponse(Common::Redis::Utility::makeError(
fmt::format("unsupported command '{}'", request->asArray()[0].asString())));
fmt::format("ERR unknown command '{}', with args beginning with: {}",
request->asArray()[0].asString(), request->asArray()[1].asString())));
return nullptr;
}

Expand Down

0 comments on commit b8c3125

Please sign in to comment.