Commit a0f6abff authored by Johnny Lim's avatar Johnny Lim Committed by Stephane Nicoll

Use the platform-specific line separator

Closes gh-11674
parent 34b19de6
...@@ -94,7 +94,8 @@ class InvalidConfigurationPropertyValueFailureAnalyzer ...@@ -94,7 +94,8 @@ class InvalidConfigurationPropertyValueFailureAnalyzer
private void appendReason(StringBuilder message, private void appendReason(StringBuilder message,
InvalidConfigurationPropertyValueException cause) { InvalidConfigurationPropertyValueException cause) {
if (StringUtils.hasText(cause.getReason())) { 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()); message.append(cause.getReason());
} }
else { else {
...@@ -114,7 +115,7 @@ class InvalidConfigurationPropertyValueFailureAnalyzer ...@@ -114,7 +115,7 @@ class InvalidConfigurationPropertyValueFailureAnalyzer
message.append("\t- In '" + other.getPropertySource() + "'"); message.append("\t- In '" + other.getPropertySource() + "'");
message.append(" with the value '" + other.getValue() + "'"); message.append(" with the value '" + other.getValue() + "'");
other.appendOrigin(message); other.appendOrigin(message);
message.append(".\n"); message.append(String.format(".%n"));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment