diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb index 30f2a254c3..dffbb0244a 100644 --- a/Library/Homebrew/pathname+yeast.rb +++ b/Library/Homebrew/pathname+yeast.rb @@ -33,7 +33,8 @@ class Pathname def install src if src.is_a? Array src.collect {|src| install src } - elsif File.exist? src + else + raise "#{src} does not exist" unless File.exist? src mkpath if File.symlink? src # we use the BSD mv command because FileUtils copies the target and