From 3088faaf9c1bea9fdbf923a05a6aea984d32fedd Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 16 Dec 2016 18:22:04 +0100 Subject: [PATCH] Fix error message when cask fails to install. --- Library/Homebrew/cask/lib/hbc/installer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/installer.rb b/Library/Homebrew/cask/lib/hbc/installer.rb index 5176143d7a..3875e1c8fe 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