diff options
author | Martin Odersky <odersky@gmail.com> | 2015-10-26 09:47:21 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-26 09:47:21 +0100 |
commit | 065a0026924f722e9844c8e314180bb4cebca236 (patch) | |
tree | 5b3beb65682e12c729c68ecd2b61b9a4d16bc2f8 /src/dotty/tools/dotc/reporting/ThrowingReporter.scala | |
parent | d4f30d1a268a51ee74c98f6ae0f45136274536af (diff) | |
download | dotty-065a0026924f722e9844c8e314180bb4cebca236.tar.gz dotty-065a0026924f722e9844c8e314180bb4cebca236.tar.bz2 dotty-065a0026924f722e9844c8e314180bb4cebca236.zip |
Don't count suppressed errors
If an error message was supressed to count it in the total.
Diffstat (limited to 'src/dotty/tools/dotc/reporting/ThrowingReporter.scala')
-rw-r--r-- | src/dotty/tools/dotc/reporting/ThrowingReporter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/reporting/ThrowingReporter.scala b/src/dotty/tools/dotc/reporting/ThrowingReporter.scala index 026453036..7c63383e9 100644 --- a/src/dotty/tools/dotc/reporting/ThrowingReporter.scala +++ b/src/dotty/tools/dotc/reporting/ThrowingReporter.scala @@ -11,7 +11,7 @@ import Reporter._ * info to the underlying reporter. */ class ThrowingReporter(reportInfo: Reporter) extends Reporter { - def doReport(d: Diagnostic)(implicit ctx: Context): Unit = d match { + def doReport(d: Diagnostic)(implicit ctx: Context): Boolean = d match { case _: Error => throw d case _ => reportInfo.doReport(d) } |