JingsongLi commented on code in PR #7254:
URL: https://github.com/apache/paimon/pull/7254#discussion_r2788564865
##########
paimon-api/src/main/java/org/apache/paimon/rest/HttpClient.java:
##########
@@ -144,6 +144,16 @@ private <T extends RESTResponse> T exec(HttpUriRequestBase
request, Class<T> res
: "response body is
null",
response.getCode());
}
+ if (error.getMessage() == null ||
error.getMessage().isEmpty()) {
+ error =
+ new ErrorResponse(
Review Comment:
I believe you can do some refactoring. This code is not good to duplicate
with the above code.
--
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]