mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-10 15:46:48 +02:00
Sort final failfure array for easy reading
This commit is contained in:
parent
263d095c65
commit
92bcf9d046
1 changed files with 3 additions and 2 deletions
|
@ -47,8 +47,8 @@ links.each do |link|
|
|||
fails.push("(SSL): #{link}")
|
||||
rescue SocketError
|
||||
fails.push("(SOK): #{link}")
|
||||
rescue
|
||||
fails.push("(ERR): #{link}")
|
||||
rescue Errno::ECONNREFUSED
|
||||
fails.push("(CON): #{link}")
|
||||
end
|
||||
progressbar.increment
|
||||
end
|
||||
|
@ -58,6 +58,7 @@ if fails.length <= 0
|
|||
exit(0)
|
||||
else
|
||||
puts "-- RESULTS --"
|
||||
fails.sort!
|
||||
fails.each do |e|
|
||||
puts e
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue