Skip to content

Commit a2b323e

Browse files
committed
Give info about compiled files on every exception
Helps to trouble-shoot the culprit during parallel testing
1 parent a5da78a commit a2b323e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dotty/tools/dotc/Driver.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ class Driver {
3434
case ex: FatalError =>
3535
ctx.error(ex.getMessage) // signals that we should fail compilation.
3636
ctx.reporter
37+
case ex: Throwable =>
38+
println(s"$ex while compiling ${fileNames.mkString(", ")}")
39+
throw ex
3740
}
3841
else ctx.reporter
3942

0 commit comments

Comments
 (0)