diff options
| author | Markus Reiter | 2016-12-17 17:17:25 +0100 |
|---|---|---|
| committer | GitHub | 2016-12-17 17:17:25 +0100 |
| commit | 60d63965f2ea8e413002238fa7b12d206407a725 (patch) | |
| tree | ddcfa263f80cf399556b6d49297529721e2cf445 /Library | |
| parent | 8b04545b3ff401874a0009168ebb10bfac0ad5fd (diff) | |
| parent | 3088faaf9c1bea9fdbf923a05a6aea984d32fedd (diff) | |
| download | brew-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.rb | 3 |
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 |
