Show uniq error count

bug/bundler_fix
Jon Hart 2014-11-12 07:38:07 -08:00
parent b05198c05a
commit e658640014
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 3 additions and 2 deletions

View File

@ -276,10 +276,11 @@ def scanner_handle_fatal_errors
@tl.each {|t| t.kill if t.alive? } @tl.each {|t| t.kill if t.alive? }
# Show the unique errors triggered by the scan # Show the unique errors triggered by the scan
@scan_errors.uniq.each do |emsg| uniq_errors = @scan_errors.uniq
uniq_errors.each do |emsg|
print_error("Fatal: #{emsg}") print_error("Fatal: #{emsg}")
end end
print_error("Scan terminated due to one or more fatal errors") print_error("Scan terminated due to #{uniq_errors.size} fatal error(s)")
end end
def scanner_progress def scanner_progress