Skip to content

Commit

Permalink
Merge pull request #15399 from Bo98/cask-backtrace-improve
Browse files Browse the repository at this point in the history
cask/upgrade: improve error backtraces
  • Loading branch information
Bo98 authored May 10, 2023
2 parents 15244d8 + fb31c5d commit 5f2ccd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/cask/upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def self.upgrade_casks(
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

Expand Down

0 comments on commit 5f2ccd2

Please sign in to comment.