Merge pull request #1689 from reitermarkus/failed-install-error-message
Fix error message when cask fails to install.
This commit is contained in:
commit
60d63965f2
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user