mirror of
https://github.com/lightbend/config.git
synced 2025-03-23 07:40:25 +08:00
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:
parent
91ec79f976
commit
c6cd729746
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user