From 760bbb4e36c73e27eb6a4c1cf0f8be163117c61b Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 8 Jun 2011 11:34:01 -0700 Subject: [PATCH] Remove debugging puts --- Library/Homebrew/formula.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 29b5e1bd92..a381ce3b7a 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