1
0
Эх сурвалжийг харах

Rescue all exceptions when downloading docs

Thibaut 11 жил өмнө
parent
commit
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