MatrixHB commented on code in PR #32:
URL: 
https://github.com/apache/rocketmq-schema-registry/pull/32#discussion_r943534083


##########
common/src/main/java/org/apache/rocketmq/schema/registry/common/QualifiedName.java:
##########
@@ -80,18 +80,17 @@ public String subjectFullName() {
 
     @Override
     public String toString() {
-        final StringBuilder sb = new StringBuilder("{");
-        sb.append("\"cluster\":\"")

Review Comment:
   The original NotExistException uses `qualifiedName.fullname()` to return 
error message, and the error parameter is not clear from the `fullname`, so I 
change it to `toString()`. 
   When using `toString()` to return error message, which is JSON format,  the 
HTTP will fail to parse the error message maybe because of containing quotation 
marks, so I change it to non JSON format.



-- 
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