Skip to content

Commit

Permalink
Merge pull request #164 from koppor/output-all-separators
Browse files Browse the repository at this point in the history
Output all separators in error message
  • Loading branch information
charphi authored Nov 8, 2023
2 parents cdf5c93 + 8e7648a commit 30cb4e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static Failure validateConsistentSeparator(Document doc) {
? Failure
.builder()
.rule(CONSISTENT_SEPARATOR)
.message("Expecting consistent version-date separator " + toUnicode(separators.get(0)) + ", found [" + separators.stream().skip(1).map(ExtendedRules::toUnicode).collect(joining(", ")) + "]")
.message("Expecting consistent version-date separator " + toUnicode(separators.get(0)) + ", found " + separators.stream().map(ExtendedRules::toUnicode).collect(joining(", ", "[", "]")))
.location(doc)
.build()
: NO_PROBLEM;
Expand Down

0 comments on commit 30cb4e5

Please sign in to comment.