diff --git a/test/dotty/partest/DPDirectCompiler.scala b/test/dotty/partest/DPDirectCompiler.scala index c05357edbd26..ca56ac3e991e 100644 --- a/test/dotty/partest/DPDirectCompiler.scala +++ b/test/dotty/partest/DPDirectCompiler.scala @@ -34,7 +34,10 @@ class DPDirectCompiler(runner: DPTestRunner) extends nest.DirectCompiler(runner) runner.genFail(s"compilation failed with ${reporter.errorCount} errors") } } catch { - case t: Throwable => runner.genCrash(t) + case t: Throwable => + t.printStackTrace + t.printStackTrace(clogWriter) + runner.genCrash(t) } finally { clogFWriter.close clogWriter.close