mirror of https://github.com/sbt/sbt.git
fix maxErrors to filter errors, not warnings
This commit is contained in:
parent
2bb78c133f
commit
51f88855c2
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue