Merge pull request #8150 from kiendang/cask-upgrade-error

Prepend cask name to cask upgrade error message
This commit is contained in:
Mike McQuaid 2020-07-31 17:31:04 +01:00 committed by GitHub
commit 20e1126f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,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 => e rescue => e
caught_exceptions << e caught_exceptions << e.exception("#{new_cask.full_name}: #{e}")
next next
end end