Skip to content

Commit

Permalink
CLDR-17532 improve CheckWidths message for annotations (#3809)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored Jun 17, 2024
1 parent b62336e commit 3766112
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public Limit(
this.subtype = Subtype.valueTooWide;
break;
case SET_ELEMENTS:
this.message = "Expected no more than {0} items(s), but was {1}.";
this.message =
"There cannot be more than {3} item(s), and it is recommended to not have more than {0} item(s). Found {1} item(s).";
this.subtype = Subtype.tooManyValues;
break;
default:
Expand Down Expand Up @@ -220,7 +221,12 @@ boolean hasProblem(
.setCause(cause)
.setMainType(errorType)
.setSubtype(subtype)
.setMessage(message, warningReference, valueMeasure, percent));
.setMessage(
message,
warningReference,
valueMeasure,
percent,
errorReference));
return true;
}
}
Expand Down

0 comments on commit 3766112

Please sign in to comment.