Merge pull request #15399 from Bo98/cask-backtrace-improve
cask/upgrade: improve error backtraces
This commit is contained in:
commit
5f2ccd22f2
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user