Zuehlke / cookbook-windev

One cookbook with resources for setting up a Windows development environment
MIT License
7 stars 1 forks source link

Improve the error message when remote_file fails to fetch #12

Open damphyr opened 9 years ago

damphyr commented 9 years ago

Currently we get one of those damned nil errors:

==> test: [2015-06-23T14:22:12+02:00] FATAL: NoMethodError: windev_cache_package[rubyinstaller-2.2.2.exe] (windev::packages line 15) had an error: 
NoMethodError: remote_file[c:\tools\installers/rubyinstaller-2.2.2.exe] 
(C:/scripts/local-mode-cache/cache/cookbooks/windev/providers/cache_package.rb line 21) had an error: NoMethodError: 
undefined method `gsub' for nil:NilClass