We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5b579 commit fdef7a0Copy full SHA for fdef7a0
1 file changed
tasks/updater/network.rb
@@ -25,7 +25,13 @@ def read_files(path, files)
25
log_http_get_files files, path_url, false
26
files.map do |name|
27
Thread.start {
28
- contents[name] = URI.open("#{path_url}/#{name}").read
+ begin
29
+ url = "#{path_url}/#{name}"
30
+ contents[name] = URI.open(url).read
31
+ rescue Exception => e
32
+ log "Error downloading #{url}: #{e}"
33
+ exit 1
34
+ end
35
WRITE_FILES_MUTEX.synchronize { write_cached_files path, name => contents[name] }
36
}
37
end.each(&:join)
0 commit comments