lib/mapbox-gl/updater.rb in mapbox-gl-rails-0.51.0 vs lib/mapbox-gl/updater.rb in mapbox-gl-rails-0.52.0
- old
+ new
@@ -39,9 +39,11 @@
end
remove_file "stylesheets/mapbox-gl-#{plugin_name}.css"
rescue KeyError => error
raise KeyError, "#{error.message} for #{plugin_name} plugin!"
+ rescue OpenURI::HTTPError => error
+ raise "#{plugin_name} v#{plugin_version} could not be downloaded (#{error.message})!"
end
end
end
end