diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
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 |
