Skip to content

Commit 9fe9865

Browse files
committed
More info when TreeChecker fails
Now also provides compilation unit.
1 parent 02f0c79 commit 9fe9865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/TreeChecker.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class TreeChecker extends Phase with SymTransformer {
125125
catch {
126126
case NonFatal(ex) =>
127127
implicit val ctx: Context = checkingCtx
128-
ctx.println(i"*** error while checking after phase ${checkingCtx.phase.prev} ***")
128+
ctx.println(i"*** error while checking ${ctx.compilationUnit} after phase ${checkingCtx.phase.prev} ***")
129129
ctx.println(ex.toString)
130130
ctx.println(ex.getStackTrace.take(30).deep.mkString("\n"))
131131
ctx.println("<<<")

0 commit comments

Comments
 (0)