Skip to content

Commit 817e6ff

Browse files
committed
refine error message
1 parent ed91a48 commit 817e6ff

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,16 @@ trait ParallelTesting extends RunnerOrchestration { self =>
472472
val outputLines = reporter.writer.toString.trim.replaceAll("\\s+\n", "\n")
473473

474474
if (outputLines != checkLines) {
475-
val msg = s"Output from '${source.title}' did not match check file '${checkFile.getName}'."
476-
println("===============================")
477-
println("expected: \n" + checkLines)
478-
println("actual: \n" + outputLines)
479-
println("===============================")
475+
val msg =
476+
s"""|Output from '${source.title}' did not match check file '${checkFile.getName}'.
477+
|-------------------------------------
478+
|expected:
479+
|$checkLines
480+
|
481+
|actual:
482+
|$outputLines
483+
|-------------------------------------
484+
""".stripMargin
480485

481486
echo(msg)
482487
addFailureInstruction(msg)

0 commit comments

Comments
 (0)