Skip to content

Commit 37c9372

Browse files
committed
verbose download error logging
1 parent 7a7839e commit 37c9372

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- SPI mocks
1313
- `ensure_arduino_installation.rb` to allow custom libraries to be installed
1414
- Copy constructor for `ArduinoCITable`
15+
- Some error information on failures to download the Arduino binary
1516

1617
### Changed
1718
- Refactored documentation

lib/arduino_ci/arduino_downloader.rb

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def download
132132
open(package_url, ssl_verify_mode: 0, progress_proc: dot_printer) do |url|
133133
File.open(package_file, 'wb') { |file| file.write(url.read) }
134134
end
135+
rescue Net::OpenTimeout, Net::ReadTimeout => e
136+
puts "\nArduino force-install failed downloading #{package_url}: #{e}"
135137
end
136138

137139
# Extract the package_file to extracted_file

0 commit comments

Comments
 (0)