Fix error message when cask fails to install.

This commit is contained in:
Markus Reiter 2016-12-16 18:22:04 +01:00
parent 9cd5a21b47
commit 3088faaf9c

View File

@ -146,14 +146,13 @@ module Hbc
end end
rescue StandardError => e rescue StandardError => e
begin begin
ofail e.message
already_installed_artifacts.each do |artifact| already_installed_artifacts.each do |artifact|
odebug "Reverting installation of artifact of class #{artifact}" odebug "Reverting installation of artifact of class #{artifact}"
artifact.new(@cask, options).uninstall_phase artifact.new(@cask, options).uninstall_phase
end end
ensure ensure
purge_versioned_files purge_versioned_files
raise e.class, "An error occured during installation of Cask #{@cask}: #{e.message}" raise e
end end
end end