aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2016-12-16 18:22:04 +0100
committerMarkus Reiter2016-12-16 18:22:04 +0100
commit3088faaf9c1bea9fdbf923a05a6aea984d32fedd (patch)
tree2d4618607a5621ea884f3b5838fc52a8563c1867
parent9cd5a21b473f0271b162bbe7f77f7d1468c0cfa1 (diff)
downloadbrew-3088faaf9c1bea9fdbf923a05a6aea984d32fedd.tar.bz2
Fix error message when cask fails to install.
-rw-r--r--Library/Homebrew/cask/lib/hbc/installer.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/installer.rb b/Library/Homebrew/cask/lib/hbc/installer.rb
index 5176143d7..3875e1c8f 100644
--- a/Library/Homebrew/cask/lib/hbc/installer.rb
+++ b/Library/Homebrew/cask/lib/hbc/installer.rb
@@ -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