Skip to content

Commit e658640

Browse files
committed
Show uniq error count
1 parent b05198c commit e658640

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/msf/core/auxiliary/scanner.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,11 @@ def scanner_handle_fatal_errors
276276
@tl.each {|t| t.kill if t.alive? }
277277

278278
# Show the unique errors triggered by the scan
279-
@scan_errors.uniq.each do |emsg|
279+
uniq_errors = @scan_errors.uniq
280+
uniq_errors.each do |emsg|
280281
print_error("Fatal: #{emsg}")
281282
end
282-
print_error("Scan terminated due to one or more fatal errors")
283+
print_error("Scan terminated due to #{uniq_errors.size} fatal error(s)")
283284
end
284285

285286
def scanner_progress

0 commit comments

Comments
 (0)