aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 29b5e1bd9..a381ce3b7 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -403,9 +403,7 @@ class Formula
begin
klass_name = self.class_s(name)
klass = Object.const_get klass_name
- rescue NameError => e
- puts "NameError"
- puts e
+ rescue NameError
# TODO really this text should be encoded into the exception
# and only shown if the UI deems it correct to show it
onoe "class \"#{klass_name}\" expected but not found in #{name}.rb"
@@ -415,9 +413,7 @@ class Formula
return klass.new(name) if install_type == :from_name
return klass.new(name, target_file)
- rescue LoadError => e
- puts "LoadError"
- puts e
+ rescue LoadError
raise FormulaUnavailableError.new(name)
end