Skip to content

Commit 65634a9

Browse files
committed
Change ctx.error to println
1 parent f077ed9 commit 65634a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/SyntaxHighlighting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ object SyntaxHighlighting {
389389
colorAt(i) = color
390390
} catch {
391391
case _: IndexOutOfBoundsException =>
392-
ctx.error("Encountered tree with invalid position, please open an issue with the code snippet that caused the error")
392+
println("Encountered tree with invalid position, please open an issue with the code snippet that caused the error")
393393
}
394394
}
395395
def highlightPosition(pos: Position, color: String) =

0 commit comments

Comments
 (0)