Merge pull request #11674 from izeye:platform-specifc-line-separator
* pr/11674: Use the platform-specific line separator
This commit is contained in:
@@ -94,7 +94,8 @@ class InvalidConfigurationPropertyValueFailureAnalyzer
|
||||
private void appendReason(StringBuilder message,
|
||||
InvalidConfigurationPropertyValueException cause) {
|
||||
if (StringUtils.hasText(cause.getReason())) {
|
||||
message.append(" Validation failed for the following reason:\n\n");
|
||||
message.append(String.format(" Validation failed for the following "
|
||||
+ "reason:%n%n"));
|
||||
message.append(cause.getReason());
|
||||
}
|
||||
else {
|
||||
@@ -114,7 +115,7 @@ class InvalidConfigurationPropertyValueFailureAnalyzer
|
||||
message.append("\t- In '" + other.getPropertySource() + "'");
|
||||
message.append(" with the value '" + other.getValue() + "'");
|
||||
other.appendOrigin(message);
|
||||
message.append(".\n");
|
||||
message.append(String.format(".%n"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user