aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-26 17:08:09 -0700
committerAdam Vandenberg2012-08-26 17:08:09 -0700
commit9028fdfb0144e236e9856715764c41cff237ab62 (patch)
tree1871dc83093ce7e03a2c7bfdb56e25dd282d8b05 /Library
parent05970688271d18a2357f48a06de8fa3b9fbf74f2 (diff)
downloadhomebrew-9028fdfb0144e236e9856715764c41cff237ab62.tar.bz2
Formula factory: add comment
Diffstat (limited to 'Library')
-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