git-hulk commented on code in PR #1928:
URL: https://github.com/apache/kvrocks/pull/1928#discussion_r1420352635


##########
src/server/redis_connection.cc:
##########
@@ -393,7 +393,7 @@ void Connection::ExecuteCommands(std::deque<CommandTokens> 
*to_process_cmds) {
       s = srv_->cluster->CanExecByMySelf(attributes, cmd_tokens, this);
       if (!s.IsOK()) {
         if (is_multi_exec) multi_error_ = true;
-        Reply(redis::Error("ERR " + s.Msg()));
+        Reply(redis::Error(s.Msg()));

Review Comment:
   @PragmaTwice It only affects the cluster redirect error message which 
returns by `CanExecByMySelf`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to