Skip to content

Commit 50d0fa8

Browse files
slothspotallanrenucci
authored andcommitted
Change ctx.error to println
1 parent 5204a6d commit 50d0fa8

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

0 commit comments

Comments
 (0)