Skip to content
Snippets Groups Projects
Unverified Commit 93c231cd authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #6766 from reitermarkus/cask-upgrade

Rescue more errors during `cask upgrade`.
parents a5550aa9 fbf4b043
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ module Cask
upgradable_casks.each do |(old_cask, new_cask)|
upgrade_cask(old_cask, new_cask)
rescue CaskError => e
rescue => e
caught_exceptions << e
next
end
......@@ -103,7 +103,7 @@ module Cask
# If successful, wipe the old Cask from staging
old_cask_installer.finalize_upgrade
rescue CaskError => e
rescue => e
new_cask_installer.uninstall_artifacts if new_artifacts_installed
new_cask_installer.purge_versioned_files
old_cask_installer.revert_upgrade if started_upgrade
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment