Skip to content

Commit 5a50e50

Browse files
committed
Add new line before printing the message content from diagnostic
1 parent 8b53d7b commit 5a50e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/build/src/main/scala/scala/build/ConsoleBloopBuildClient.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ object ConsoleBloopBuildClient {
174174
val prefix = diagnosticPrefix(diag.getSeverity)
175175

176176
val line = (diag.getRange.getStart.getLine + 1).toString + ":"
177-
val col = (diag.getRange.getStart.getCharacter + 1).toString + ":"
177+
val col = (diag.getRange.getStart.getCharacter + 1).toString
178178
val msgIt = diag.getMessage.linesIterator
179179

180180
val path0 = path match {
@@ -183,7 +183,7 @@ object ConsoleBloopBuildClient {
183183
"." + File.separator + p.relativeTo(Os.pwd).toString
184184
case Right(p) => p.toString
185185
}
186-
logger.error(s"$prefix$path0:$line$col" + (if (msgIt.hasNext) " " + msgIt.next() else ""))
186+
logger.error(s"$prefix$path0:$line$col")
187187
for (line <- msgIt)
188188
logger.error(prefix + line)
189189
val codeOpt = {

0 commit comments

Comments
 (0)