Fix exception text for bad duration value

It said it expected a string or number of $units,
but really if it's a number it always has to be
milliseconds.
This commit is contained in:
Havoc Pennington 2013-06-21 10:21:50 -04:00
parent 91ec79f976
commit c6cd729746

View File

@ -408,7 +408,7 @@ final class SimpleConfig implements Config, MergeableValue, Serializable {
l.add(n);
} else {
throw new ConfigException.WrongType(v.origin(), path,
"duration string or number of " + unit.name(),
"duration string or number of milliseconds",
v.valueType().name());
}
}