diff options
| author | Markus Reiter | 2016-11-28 13:56:11 +0100 |
|---|---|---|
| committer | Markus Reiter | 2016-11-28 14:01:06 +0100 |
| commit | e0b93f1537248d142b1fad55a4c8777d4d75ec18 (patch) | |
| tree | 0ff4424f4784b2239e5c51e9930eda86fc3c68c7 /Library | |
| parent | e63efb3fe48523d1a24bb5d2771af73fa74dca6b (diff) | |
| download | brew-e0b93f1537248d142b1fad55a4c8777d4d75ec18.tar.bz2 | |
Also fail if symlinked artifacts already exist.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/artifact/symlinked.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/symlinked.rb b/Library/Homebrew/cask/lib/hbc/artifact/symlinked.rb index 69b388425..2cd172ad3 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/symlinked.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/symlinked.rb @@ -39,8 +39,7 @@ module Hbc def preflight_checks(source, target) if target.exist? && !self.class.islink?(target) - opoo "It seems there is already #{self.class.artifact_english_article} #{self.class.artifact_english_name} at '#{target}'; not linking." - return false + raise CaskError, "It seems there is already #{self.class.artifact_english_article} #{self.class.artifact_english_name} at '#{target}'; not linking." end unless source.exist? raise CaskError, "It seems the #{self.class.link_type_english_name.downcase} source is not there: '#{source}'" |
