Skip to content

Commit a7770d6

Browse files
committed
refine error message
1 parent 3f5900c commit a7770d6

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
@@ -449,11 +449,16 @@ trait ParallelTesting extends RunnerOrchestration { self =>
449449
val outputLines = reporter.writer.toString.trim.replaceAll("\\s+\n", "\n")
450450

451451
if (outputLines != checkLines) {
452-
val msg = s"Output from '${source.title}' did not match check file '${checkFile.getName}'."
453-
println("===============================")
454-
println("expected: \n" + checkLines)
455-
println("actual: \n" + outputLines)
456-
println("===============================")
452+
val msg =
453+
s"""|Output from '${source.title}' did not match check file '${checkFile.getName}'.
454+
|-------------------------------------
455+
|expected:
456+
|$checkLines
457+
|
458+
|actual:
459+
|$outputLines
460+
|-------------------------------------
461+
""".stripMargin
457462

458463
echo(msg)
459464
addFailureInstruction(msg)

0 commit comments

Comments
 (0)