|
@@ -149,8 +149,8 @@ class DocsCLI < Thor
|
|
|
status = begin
|
|
status = begin
|
|
|
download_doc(doc)
|
|
download_doc(doc)
|
|
|
'OK'
|
|
'OK'
|
|
|
- rescue OpenURI::HTTPError => error
|
|
|
|
|
- "FAILED (#{error.message})"
|
|
|
|
|
|
|
+ rescue => e
|
|
|
|
|
+ "FAILED (#{e.class}: #{e.message})"
|
|
|
end
|
|
end
|
|
|
puts "(#{i += 1}/#{length}) #{doc.name} #{status}"
|
|
puts "(#{i += 1}/#{length}) #{doc.name} #{status}"
|
|
|
end
|
|
end
|