cask/upgrade: improve error backtraces

This commit is contained in:
Bo Anderson 2023-05-10 14:46:51 +01:00
parent 15244d8a7d
commit fb31c5d5d6
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -118,7 +118,9 @@ module Cask
quarantine: quarantine, require_sha: require_sha
)
rescue => e
caught_exceptions << e.exception("#{new_cask.full_name}: #{e}")
new_exception = e.exception("#{new_cask.full_name}: #{e}")
new_exception.set_backtrace(e.backtrace)
caught_exceptions << new_exception
next
end