This is an automated email from the ASF dual-hosted git repository. ayushsaxena pushed a commit to branch branch-3.3 in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push: new adb673fdaf5 HDFS-17022. Fix the exception message to print the Identifier pattern (#5678). Contributed by Nishtha Shah. adb673fdaf5 is described below commit adb673fdaf5f29b2f6f5a6ef42f483c43a7cda3c Author: NishthaShah <nishtha11s...@gmail.com> AuthorDate: Sat May 20 14:40:23 2023 +0530 HDFS-17022. Fix the exception message to print the Identifier pattern (#5678). Contributed by Nishtha Shah. Signed-off-by: Ayush Saxena <ayushsax...@apache.org> --- .../src/main/java/org/apache/hadoop/lib/util/Check.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/util/Check.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/util/Check.java index 31666e83e27..62fbe28c54b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/util/Check.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/util/Check.java @@ -130,7 +130,7 @@ public class Check { } if (!IDENTIFIER_PATTERN.matcher(value).find()) { throw new IllegalArgumentException( - MessageFormat.format("[{0}] = [{1}] must be '{2}'", name, value, IDENTIFIER_PATTERN_STR)); + MessageFormat.format("[{0}] = [{1}] must be \"{2}\"", name, value, IDENTIFIER_PATTERN_STR)); } return value; } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org