Skip to content

Commit 77769c1

Browse files
committed
fix line numbers in vulpix output
1 parent c648ed2 commit 77769c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
665665
lazy val actualErrors = reporters.foldLeft(0)(_ + _.errorCount)
666666
def hasMissingAnnotations = getMissingExpectedErrors(errorMap, reporters.iterator.flatMap(_.errors))
667667
def showErrors = "-> following the errors:\n" +
668-
reporters.flatMap(_.allErrors.map(e => e.pos.line.toString + ": " + e.message)).mkString(start = "at ", sep = "\n at ", end = "")
668+
reporters.flatMap(_.allErrors.map(e => (e.pos.line + 1).toString + ": " + e.message)).mkString(start = "at ", sep = "\n at ", end = "")
669669

670670
if (compilerCrashed) Some(s"Compiler crashed when compiling: ${testSource.title}")
671671
else if (actualErrors == 0) Some(s"\nNo errors found when compiling neg test $testSource")

0 commit comments

Comments
 (0)