aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-27 14:44:48 -0500
committerJack Nagel2013-04-27 14:44:48 -0500
commit9b5cb6cfb648c528cfe9587363ee930dbfd23025 (patch)
tree3db2500beb2e16fcc2cadf61b2f840b51697ca6f /Library/Homebrew/formula.rb
parent62db042277dbd60d8b6ff74416e84c053a62b781 (diff)
downloadbrew-9b5cb6cfb648c528cfe9587363ee930dbfd23025.tar.bz2
Allow `brew versions` to work with underspecified formulae
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 1eb95c273..88d4c9af9 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -77,7 +77,7 @@ class Formula
when @devel && @stable.nil? then @devel # devel-only
when @head && @stable.nil? then @head # head-only
else
- raise "Formulae require at least a URL"
+ raise FormulaSpecificationError, "formulae require at least a URL"
end
end