From 0684ffbea1dd857761bdad35813549f96c1af942 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 19 Nov 2011 15:02:12 -0500 Subject: [PATCH] make "unresolved subst" exception suggest calling resolve() this way it's clear what the problem is. --- .../java/com/typesafe/config/impl/ConfigSubstitution.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/typesafe/config/impl/ConfigSubstitution.java b/src/main/java/com/typesafe/config/impl/ConfigSubstitution.java index 2c5531e7..b75b680e 100644 --- a/src/main/java/com/typesafe/config/impl/ConfigSubstitution.java +++ b/src/main/java/com/typesafe/config/impl/ConfigSubstitution.java @@ -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