Permalink
Browse files

fix maxErrors to filter errors, not warnings

  • Loading branch information...
1 parent 3473ba0 commit be735d96bbd898dc3728be65b8d9e9f60707a6e6 @harrah committed Dec 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 compile/LoggerReporter.scala
@@ -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 =

0 comments on commit be735d9

Please sign in to comment.