From dfd35db4d178df264e14222be51667f255cd5c81 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 26 Aug 2012 17:08:09 -0700 Subject: [PATCH] Formula factory: add comment --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 2b3305d202..cb6b44eb81 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