Rescue more errors during cask upgrade.
This commit is contained in:
parent
1d1cf36166
commit
fbf4b0432d
@ -46,7 +46,7 @@ module Cask
|
|||||||
|
|
||||||
upgradable_casks.each do |(old_cask, new_cask)|
|
upgradable_casks.each do |(old_cask, new_cask)|
|
||||||
upgrade_cask(old_cask, new_cask)
|
upgrade_cask(old_cask, new_cask)
|
||||||
rescue CaskError => e
|
rescue => e
|
||||||
caught_exceptions << e
|
caught_exceptions << e
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
@ -103,7 +103,7 @@ module Cask
|
|||||||
|
|
||||||
# If successful, wipe the old Cask from staging
|
# If successful, wipe the old Cask from staging
|
||||||
old_cask_installer.finalize_upgrade
|
old_cask_installer.finalize_upgrade
|
||||||
rescue CaskError => e
|
rescue => e
|
||||||
new_cask_installer.uninstall_artifacts if new_artifacts_installed
|
new_cask_installer.uninstall_artifacts if new_artifacts_installed
|
||||||
new_cask_installer.purge_versioned_files
|
new_cask_installer.purge_versioned_files
|
||||||
old_cask_installer.revert_upgrade if started_upgrade
|
old_cask_installer.revert_upgrade if started_upgrade
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user