tap-(un)pin/untap: better error message

Closes Homebrew/homebrew#49904.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2016-04-02 21:33:38 +08:00
parent a47ea61f0b
commit fa9a9ff5be
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ module Homebrew
def tap_pin
ARGV.named.each do |name|
tap = Tap.fetch(name)
raise "#{tap} is not allowed" if tap.core_tap?
raise "pinning #{tap} is not allowed" if tap.core_tap?
tap.pin
ohai "Pinned #{tap}"
end

View File

@ -4,7 +4,7 @@ module Homebrew
def tap_unpin
ARGV.named.each do |name|
tap = Tap.fetch(name)
raise "#{tap} is not allowed" if tap.core_tap?
raise "unpinning #{tap} is not allowed" if tap.core_tap?
tap.unpin
ohai "Unpinned #{tap}"
end

View File

@ -6,7 +6,7 @@ module Homebrew
ARGV.named.each do |tapname|
tap = Tap.fetch(tapname)
raise "#{tap} is not allowed" if tap.core_tap?
raise "untapping #{tap} is not allowed" if tap.core_tap?
tap.uninstall
end
end