aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-26 17:08:09 -0700
committerAdam Vandenberg2012-08-26 17:08:09 -0700
commitdfd35db4d178df264e14222be51667f255cd5c81 (patch)
treee731a6d6ece607699d37681308010fbe386dd76f
parentf1d0f7adbb98776910206686027097e889b693f9 (diff)
downloadbrew-dfd35db4d178df264e14222be51667f255cd5c81.tar.bz2
Formula factory: add comment
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
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