diff options
| author | Xu Cheng | 2016-04-02 21:33:38 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-04-02 21:51:36 +0800 |
| commit | fa9a9ff5be2c149e9776e940bf40988dafea968a (patch) | |
| tree | 196ba96156a27ba0591490e07abfa5f65237927f /Library/Homebrew | |
| parent | a47ea61f0bd87fdcc4576b4a1a7da32616a82346 (diff) | |
| download | brew-fa9a9ff5be2c149e9776e940bf40988dafea968a.tar.bz2 | |
tap-(un)pin/untap: better error message
Closes Homebrew/homebrew#49904.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/tap-pin.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/tap-unpin.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/untap.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/tap-pin.rb b/Library/Homebrew/cmd/tap-pin.rb index 16c3a77db..32249cac2 100644 --- a/Library/Homebrew/cmd/tap-pin.rb +++ b/Library/Homebrew/cmd/tap-pin.rb @@ -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 diff --git a/Library/Homebrew/cmd/tap-unpin.rb b/Library/Homebrew/cmd/tap-unpin.rb index 7a7a52fc8..dd4b69aaa 100644 --- a/Library/Homebrew/cmd/tap-unpin.rb +++ b/Library/Homebrew/cmd/tap-unpin.rb @@ -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 diff --git a/Library/Homebrew/cmd/untap.rb b/Library/Homebrew/cmd/untap.rb index 2f1b8056e..8f5d7de6e 100644 --- a/Library/Homebrew/cmd/untap.rb +++ b/Library/Homebrew/cmd/untap.rb @@ -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 |
