diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor index 78e90f45..d44f7efc 100644 --- a/lib/tasks/docs.thor +++ b/lib/tasks/docs.thor @@ -149,8 +149,8 @@ class DocsCLI < Thor status = begin download_doc(doc) 'OK' - rescue OpenURI::HTTPError => error - "FAILED (#{error.message})" + rescue => e + "FAILED (#{e.class}: #{e.message})" end puts "(#{i += 1}/#{length}) #{doc.name} #{status}" end