From 65e1419ea977c6ea1f4edd6ebf24f48c84fa0832 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 21 Aug 2009 18:26:50 +0100 Subject: [PATCH] Raise if installing a non-existent file --- Library/Homebrew/pathname+yeast.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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