HDFS-17022. Fix the exception message to print the Identifier pattern (#5678). Contributed by Nishtha Shah.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
9029bba5dc
commit
adb673fdaf
@ -130,7 +130,7 @@ public static String validIdentifier(String value, int maxLen, String name) {
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user