Skip to content

Commit 67805a2

Browse files
committed
partest: Print stack traces of swallowed exceptions
1 parent da661c8 commit 67805a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/dotty/partest/DPDirectCompiler.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ 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+
runner.genCrash(t)
3840
} finally {
3941
clogFWriter.close
4042
clogWriter.close

0 commit comments

Comments
 (0)