diqiu50 commented on code in PR #4213:
URL: https://github.com/apache/gravitino/pull/4213#discussion_r1690686649


##########
trino-connector/src/main/java/org/apache/gravitino/trino/connector/system/storedprocdure/AlterCatalogStoredProcedure.java:
##########
@@ -140,7 +141,7 @@ public void alterCatalog(
     } catch (Exception e) {
       throw new TrinoException(
           GravitinoErrorCode.GRAVITINO_UNSUPPORTED_OPERATION,
-          "alter catalog failed. " + e.getMessage(),
+          "alter catalog failed. " + (StringUtils.isEmpty(e.getMessage()) ? "" 
: e.getMessage()),

Review Comment:
   if e.getMessage() == null. the error message is `alter catalog failed. 
null`. so it change it.



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