Polished "Could not resolve placeholder" error message
This commit is contained in:
parent
69763fe249
commit
ee50d849a1
|
|
@ -142,7 +142,6 @@ public class PropertyPlaceholderHelper {
|
||||||
}
|
}
|
||||||
// Recursive invocation, parsing placeholders contained in the placeholder key.
|
// Recursive invocation, parsing placeholders contained in the placeholder key.
|
||||||
placeholder = parseStringValue(placeholder, placeholderResolver, visitedPlaceholders);
|
placeholder = parseStringValue(placeholder, placeholderResolver, visitedPlaceholders);
|
||||||
|
|
||||||
// Now obtain the value for the fully resolved key...
|
// Now obtain the value for the fully resolved key...
|
||||||
String propVal = placeholderResolver.resolvePlaceholder(placeholder);
|
String propVal = placeholderResolver.resolvePlaceholder(placeholder);
|
||||||
if (propVal == null && this.valueSeparator != null) {
|
if (propVal == null && this.valueSeparator != null) {
|
||||||
|
|
@ -172,9 +171,8 @@ public class PropertyPlaceholderHelper {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new IllegalArgumentException("Could not resolve placeholder '" +
|
throw new IllegalArgumentException("Could not resolve placeholder '" +
|
||||||
placeholder + "'" + " in string value [" + strVal + "]");
|
placeholder + "'" + " in string value \"" + strVal + "\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
visitedPlaceholders.remove(originalPlaceholder);
|
visitedPlaceholders.remove(originalPlaceholder);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue