소스 검색

Rescue all exceptions when downloading docs

Thibaut 11 년 전
부모
커밋
e74369aa41
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/tasks/docs.thor

+ 2 - 2
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