git-hulk opened a new issue, #2335: URL: https://github.com/apache/kvrocks/issues/2335
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues. ### Motivation As mentioned in the comment: https://github.com/apache/kvrocks/blob/unstable/tests/gocase/util/server.go#L142, we should take care of different RESP error kinds to avoid introducing the protocol compatibility issues. ### Solution Use an unify function to return the RESP error message, like the following: ``` const std::string redis::Error(ErrorKind kind, const std::string &message) { switch(kind) { case ErrorKind::Loading: case ErrorKind::NoProto: ... default: } } ``` ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- 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]
