mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Add debug string on checkArgument failure
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=184838852
This commit is contained in:
parent
afcae8cf31
commit
90a4809862
1 changed files with 5 additions and 1 deletions
|
@ -271,7 +271,11 @@ abstract class CreateOrUpdateTldCommand extends MutatingCommand {
|
|||
checkArgument(roidSuffix == null || tlds.size() == 1,
|
||||
"Can't update roid suffixes on multiple TLDs simultaneously");
|
||||
for (String tld : tlds) {
|
||||
checkArgument(tld.equals(canonicalizeDomainName(tld)));
|
||||
checkArgument(
|
||||
tld.equals(canonicalizeDomainName(tld)),
|
||||
"TLD '%s' should be given in the canonical form '%s'",
|
||||
tld,
|
||||
canonicalizeDomainName(tld));
|
||||
checkArgument(
|
||||
!CharMatcher.javaDigit().matches(tld.charAt(0)),
|
||||
"TLDs cannot begin with a number");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue