Fix error message when cask fails to install.
This commit is contained in:
parent
9cd5a21b47
commit
3088faaf9c
@ -146,14 +146,13 @@ module Hbc
|
||||
end
|
||||
rescue StandardError => e
|
||||
begin
|
||||
ofail e.message
|
||||
already_installed_artifacts.each do |artifact|
|
||||
odebug "Reverting installation of artifact of class #{artifact}"
|
||||
artifact.new(@cask, options).uninstall_phase
|
||||
end
|
||||
ensure
|
||||
purge_versioned_files
|
||||
raise e.class, "An error occured during installation of Cask #{@cask}: #{e.message}"
|
||||
raise e
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user