From 8c6efd8993215dfa8ae73041300d4d538dcb09b3 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 20 Oct 2014 03:02:32 -0500 Subject: Drop pointless use of CannotInstallFormulaError These are not caught anywhere, just raise the string. Missed in 1b3b61ff08a4ee5979838f7dbc171e9b38e83f7c. --- Library/Homebrew/cmd/install.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3