mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
make "unresolved subst" exception suggest calling resolve()
this way it's clear what the problem is.
This commit is contained in:
parent
bb43762608
commit
0684ffbea1
@ -45,14 +45,15 @@ final class ConfigSubstitution extends AbstractConfigValue implements
|
||||
@Override
|
||||
public ConfigValueType valueType() {
|
||||
throw new ConfigException.NotResolved(
|
||||
"tried to get value type on an unresolved substitution: "
|
||||
"need to call resolve() on root config; tried to get value type on an unresolved substitution: "
|
||||
+ this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object unwrapped() {
|
||||
throw new ConfigException.NotResolved(
|
||||
"tried to unwrap an unresolved substitution: " + this);
|
||||
"need to call resolve() on root config; tried to unwrap an unresolved substitution: "
|
||||
+ this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user