fix maxErrors to filter errors, not warnings

This commit is contained in:
Mark Harrah 2011-12-13 17:29:08 -05:00
parent 2bb78c133f
commit 51f88855c2
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class LoggerReporter(maximumErrors: Int, log: Logger) extends xsbti.Reporter
def display(pos: Position, msg: String, severity: Severity)
{
inc(severity)
if(severity != Warn || maximumErrors <= 0 || count.get(severity) <= maximumErrors)
if(severity != Error || maximumErrors <= 0 || count.get(severity) <= maximumErrors)
print(severityLogger(severity), pos, msg)
}
def severityLogger(severity: Severity): (=> String) => Unit =