Have the string payload of the OptionsParsingException exception thrown by ResourceConverter#convert respect subclassing.
Previously, the string payload was incorrect for e.g. ExecutionOptions.CpuResourceConverter because it incorrectly states that "auto" is a valid option value.
RELNOTES: None
@@ -126,7 +126,7 @@ public class ResourceConverter extends Converters.IntegerConverter {
throw new OptionsParsingException(
String.format(
"Parameter '%s' does not follow correct syntax. This flag takes %s.",
- input, FLAG_SYNTAX));
+ input, getTypeDescription()));
}
/** Applies function designated in {@code expression} ([-|*]<float>) to value. */
