mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
11.12.2007 f3c3486a4dc3b6b5afcbb34a0bad1b24ad443b64
opends/src/server/org/opends/server/admin/IllegalPropertyValueException.java
@@ -76,9 +76,13 @@
   */
  @Override
  public String getMessage() {
    return "The value \"" + String.valueOf(value)
        + "\" is not a valid value for the property \""
        + getPropertyDefinition().getName() + "\"";
    String msg = "The value \"%s\" is not a valid value for the "
        + "property \"%s\", which must have the following syntax: %s";
    PropertyDefinition<?> pd = getPropertyDefinition();
    PropertyDefinitionUsageBuilder builder = new PropertyDefinitionUsageBuilder(
        true);
    return String.format(msg, String.valueOf(value), pd.getName(), builder
        .getUsage(pd));
  }
}