Skip to content

Commit ee50d84

Browse files
jhoellerunknown
authored andcommitted
Polished "Could not resolve placeholder" error message
1 parent 69763fe commit ee50d84

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ protected String parseStringValue(
142142
}
143143
// Recursive invocation, parsing placeholders contained in the placeholder key.
144144
placeholder = parseStringValue(placeholder, placeholderResolver, visitedPlaceholders);
145-
146145
// Now obtain the value for the fully resolved key...
147146
String propVal = placeholderResolver.resolvePlaceholder(placeholder);
148147
if (propVal == null && this.valueSeparator != null) {
@@ -172,9 +171,8 @@ else if (this.ignoreUnresolvablePlaceholders) {
172171
}
173172
else {
174173
throw new IllegalArgumentException("Could not resolve placeholder '" +
175-
placeholder + "'" + " in string value [" + strVal + "]");
174+
placeholder + "'" + " in string value \"" + strVal + "\"");
176175
}
177-
178176
visitedPlaceholders.remove(originalPlaceholder);
179177
}
180178
else {

0 commit comments

Comments
 (0)