Skip to content

Commit b20a713

Browse files
committed
Format compiler crash stack traces
This allows them to be recognised, e.g. from IntelliJ.
1 parent c01d596 commit b20a713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
271271
/** This callback is executed once the compilation of this test source finished */
272272
private final def onComplete(testSource: TestSource, reportersOrCrash: Try[Seq[TestReporter]], logger: LoggedRunnable): Unit =
273273
reportersOrCrash match {
274-
case TryFailure(exn) => onFailure(testSource, Nil, logger, Some(s"Fatal compiler crash when compiling: ${testSource.title}:\n${exn.getMessage}\n${exn.getStackTrace.mkString("\n")}"))
274+
case TryFailure(exn) => onFailure(testSource, Nil, logger, Some(s"Fatal compiler crash when compiling: ${testSource.title}:\n${exn.getMessage}${exn.getStackTrace.map("\n\tat " + _).mkString}"))
275275
case TrySuccess(reporters) => maybeFailureMessage(testSource, reporters) match {
276276
case Some(msg) => onFailure(testSource, reporters, logger, Option(msg).filter(_.nonEmpty))
277277
case None => onSuccess(testSource, reporters, logger)

0 commit comments

Comments
 (0)