mirror of
https://github.com/lightbend/config.git
synced 2025-01-28 21:20:07 +08:00
Fix Tokens.Value.toString on unresolved values
It was throwing an exception trying to unwrap unresolved value
This commit is contained in:
parent
e5cc23235f
commit
44e8a925b2
@ -26,7 +26,10 @@ final class Tokens {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "'" + value().unwrapped() + "' (" + value.valueType().name() + ")";
|
||||
if (value().resolveStatus() == ResolveStatus.RESOLVED)
|
||||
return "'" + value().unwrapped() + "' (" + value.valueType().name() + ")";
|
||||
else
|
||||
return "'<unresolved value>' (" + value.valueType().name() + ")";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user