adoroszlai commented on code in PR #9301:
URL: https://github.com/apache/ozone/pull/9301#discussion_r2534703597


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java:
##########
@@ -581,7 +581,7 @@ public static void validateBucketName(String bucketName, 
boolean isStrictS3)
     try {
       HddsClientUtils.verifyResourceName(bucketName, "bucket", isStrictS3);
     } catch (IllegalArgumentException e) {
-      throw new OMException("Invalid bucket name: " + bucketName,
+      throw new OMException(e.getMessage(),

Review Comment:
   Please also make similar change in `validateVolumeName`.
   
   
https://github.com/apache/ozone/blob/156337e638ceffaacdfc33a0febaac58f79cb324/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java#L571



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to