aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2016-12-17 17:17:25 +0100
committerGitHub2016-12-17 17:17:25 +0100
commit60d63965f2ea8e413002238fa7b12d206407a725 (patch)
treeddcfa263f80cf399556b6d49297529721e2cf445 /Library
parent8b04545b3ff401874a0009168ebb10bfac0ad5fd (diff)
parent3088faaf9c1bea9fdbf923a05a6aea984d32fedd (diff)
downloadbrew-60d63965f2ea8e413002238fa7b12d206407a725.tar.bz2
Merge pull request #1689 from reitermarkus/failed-install-error-message
Fix error message when cask fails to install.
Diffstat (limited to 'Library')
-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