From e1d36b72f2a3ae8c5f8ee7a1c8d918debbfc837b Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 25 Feb 2016 23:17:21 +1000 Subject: [PATCH] Migrate to new Reporter API Addressing a TODO in the reporter code in scala/scala, which frees us up to refactor further. --- src/main/scala/scala/tools/partest/nest/DirectCompiler.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/scala/tools/partest/nest/DirectCompiler.scala b/src/main/scala/scala/tools/partest/nest/DirectCompiler.scala index e9b0e13..9c52624 100644 --- a/src/main/scala/scala/tools/partest/nest/DirectCompiler.scala +++ b/src/main/scala/scala/tools/partest/nest/DirectCompiler.scala @@ -92,7 +92,7 @@ class DirectCompiler(val runner: Runner) { val command = new CompilerCommand(opts.toList, testSettings) val global = newGlobal(testSettings, logWriter) val reporter = global.reporter.asInstanceOf[ExtConsoleReporter] - def errorCount = reporter.ERROR.count + def errorCount = reporter.errorCount testSettings.outputDirs setSingleOutput outDir.getPath