Skip to content

Commit

Permalink
tap-(un)pin/untap: better error message
Browse files Browse the repository at this point in the history
Closes Homebrew#49904.

Signed-off-by: Xu Cheng <xucheng@me.com>
  • Loading branch information
xu-cheng committed Apr 2, 2016
1 parent 68d6718 commit dc94fbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/tap-pin.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/tap-unpin.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/untap.rb
Expand Up @@ -6,7 +6,7 @@ def untap

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
Expand Down

0 comments on commit dc94fbc

Please sign in to comment.