fix failOnError to only fail when lint found