tasks/updater/network.rb in bootstrap-4.6.1 vs tasks/updater/network.rb in bootstrap-4.6.2

- old
+ new

@@ -23,10 +23,16 @@ log_http_get_files contents.keys, path_url, true if contents.keys files -= contents.keys log_http_get_files files, path_url, false files.map do |name| Thread.start { - contents[name] = URI.open("#{path_url}/#{name}").read + begin + url = "#{path_url}/#{name}" + contents[name] = URI.open(url).read + rescue Exception => e + log "Error downloading #{url}: #{e}" + exit 1 + end WRITE_FILES_MUTEX.synchronize { write_cached_files path, name => contents[name] } } end.each(&:join) contents end