History

Rescue all exceptions when downloading docs

Thibaut committed 12 years ago

Commit e74369a1 parent 89f2f2f1 file · +2 −2Browse files

Unified · Split

lib/tasks/docs.thor+2−2
@@ -149,8 +149,8 @@ class DocsCLI < Thor · 148 unmodified lines
149 status = begin149 status = begin
150 download_doc(doc)150 download_doc(doc)
151 'OK'151 'OK'
152 rescue OpenURI::HTTPError => error152 rescue => e
153 "FAILED (#{error.message})"153 "FAILED (#{e.class}: #{e.message})"
154 end154 end
155 puts "(#{i += 1}/#{length}) #{doc.name} #{status}"155 puts "(#{i += 1}/#{length}) #{doc.name} #{status}"
156 end156 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t