Skip to content
Snippets Groups Projects
Commit fa9a9ff5 authored by Xu Cheng's avatar Xu Cheng
Browse files

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


Closes Homebrew/homebrew#49904.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent a47ea61f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment