Skip to content

Commit

Permalink
ScalafmtConfig: display validation errors clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Aug 11, 2023
1 parent e1de2a9 commit bb66b03
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@ object ScalafmtConfig {
}
docstrings.validate
if (errors.nonEmpty) {
val prefix = s"newlines.source=${newlines.source} and ["
allErrors += errors.mkString(prefix, ",", "]")
allErrors += s"newlines.source=${newlines.source} and ["
errors.foreach(x => allErrors += "\t" + x)
allErrors += "]"
}
}
locally {
Expand Down

0 comments on commit bb66b03

Please sign in to comment.