Skip to content

Commit

Permalink
fix maxErrors to filter errors, not warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
harrah committed May 5, 2012
1 parent 3473ba0 commit be735d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile/LoggerReporter.scala
Expand Up @@ -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 =
Expand Down

0 comments on commit be735d9

Please sign in to comment.