Skip to content

Commit ff7b0a2

Browse files
slothspotallanrenucci
authored andcommitted
Change ctx.error to println
1 parent be980fd commit ff7b0a2

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
@@ -388,7 +388,7 @@ object SyntaxHighlighting {
388388
colorAt(i) = color
389389
} catch {
390390
case _: IndexOutOfBoundsException =>
391-
ctx.error("Encountered tree with invalid position, please open an issue with the code snippet that caused the error")
391+
println("Encountered tree with invalid position, please open an issue with the code snippet that caused the error")
392392
}
393393
}
394394
def highlightPosition(pos: Position, color: String) =

0 commit comments

Comments
 (0)