mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Sort final failfure array for easy reading
This commit is contained in:
@@ -47,8 +47,8 @@ links.each do |link|
|
|||||||
fails.push("(SSL): #{link}")
|
fails.push("(SSL): #{link}")
|
||||||
rescue SocketError
|
rescue SocketError
|
||||||
fails.push("(SOK): #{link}")
|
fails.push("(SOK): #{link}")
|
||||||
rescue
|
rescue Errno::ECONNREFUSED
|
||||||
fails.push("(ERR): #{link}")
|
fails.push("(CON): #{link}")
|
||||||
end
|
end
|
||||||
progressbar.increment
|
progressbar.increment
|
||||||
end
|
end
|
||||||
@@ -58,6 +58,7 @@ if fails.length <= 0
|
|||||||
exit(0)
|
exit(0)
|
||||||
else
|
else
|
||||||
puts "-- RESULTS --"
|
puts "-- RESULTS --"
|
||||||
|
fails.sort!
|
||||||
fails.each do |e|
|
fails.each do |e|
|
||||||
puts e
|
puts e
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user