aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/formulary.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 37ca80b90..b6ac6a98c 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -72,11 +72,8 @@ class Formulary
def load_file
STDERR.puts "#{$0} (#{self.class.name}): loading #{path}" if ARGV.debug?
- begin
- require(path)
- rescue LoadError => e
- raise FormulaUnavailableError, name, e.backtrace
- end
+ raise FormulaUnavailableError.new(name) unless path.file?
+ require(path)
end
end