From 9028fdfb0144e236e9856715764c41cff237ab62 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 26 Aug 2012 17:08:09 -0700 Subject: Formula factory: add comment --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 2b3305d20..cb6b44eb8 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -410,6 +410,8 @@ class Formula # have a "no such formula" message. raise rescue LoadError, NameError + # Catch NameError so that things that are invalid symbols still get + # a useful error message. raise FormulaUnavailableError.new(name) end -- cgit v1.2.3