From 87f60583f549a343290145ff07b0a99ae433862d Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Fri, 15 Jan 2016 18:58:49 +0100 Subject: [PATCH] partest: Print stack traces of swallowed exceptions --- test/dotty/partest/DPDirectCompiler.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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