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
408dbf318e
commit
9a524ede87
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue