Skip to content

Commit 2503291

Browse files
committed
Merge pull request #1029 from dotty-staging/fix/partest-output
partest: Print stack traces of swallowed exceptions
2 parents da661c8 + 87f6058 commit 2503291

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/dotty/partest/DPDirectCompiler.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ class DPDirectCompiler(runner: DPTestRunner) extends nest.DirectCompiler(runner)
3434
runner.genFail(s"compilation failed with ${reporter.errorCount} errors")
3535
}
3636
} catch {
37-
case t: Throwable => runner.genCrash(t)
37+
case t: Throwable =>
38+
t.printStackTrace
39+
t.printStackTrace(clogWriter)
40+
runner.genCrash(t)
3841
} finally {
3942
clogFWriter.close
4043
clogWriter.close

0 commit comments

Comments
 (0)