Merge pull request #15399 from Bo98/cask-backtrace-improve

cask/upgrade: improve error backtraces
This commit is contained in:
Bo Anderson 2023-05-10 15:49:30 +01:00 committed by GitHub
commit 5f2ccd22f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,9 @@ module Cask
quarantine: quarantine, require_sha: require_sha quarantine: quarantine, require_sha: require_sha
) )
rescue => e 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 next
end end