Merge pull request #1689 from reitermarkus/failed-install-error-message

Fix error message when cask fails to install.
This commit is contained in:
Markus Reiter 2016-12-17 17:17:25 +01:00 committed by GitHub
commit 60d63965f2

View File

@ -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