aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-20 03:02:32 -0500
committerJack Nagel2014-10-20 03:15:12 -0500
commit8c6efd8993215dfa8ae73041300d4d538dcb09b3 (patch)
treeba7b037a72da85c952e3e6b22ba42ded176be01f /Library
parent7a06bc067e292bb55b63b65a7f5cdf544c5aad12 (diff)
downloadbrew-8c6efd8993215dfa8ae73041300d4d538dcb09b3.tar.bz2
Drop pointless use of CannotInstallFormulaError
These are not caught anywhere, just raise the string. Missed in 1b3b61ff08a4ee5979838f7dbc171e9b38e83f7c.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 94f9e3a78..b85092467 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -28,7 +28,7 @@ module Homebrew
ARGV.formulae.each do |f|
# Building head-only without --HEAD is an error
if not ARGV.build_head? and f.stable.nil?
- raise CannotInstallFormulaError, <<-EOS.undent
+ raise <<-EOS.undent
#{f.name} is a head-only formula
Install with `brew install --HEAD #{f.name}`
EOS
@@ -36,7 +36,7 @@ module Homebrew
# Building stable-only with --HEAD is an error
if ARGV.build_head? and f.head.nil?
- raise CannotInstallFormulaError, "No head is defined for #{f.name}"
+ raise "No head is defined for #{f.name}"
end
end