diff options
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 3791762c0..23c227825 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -119,6 +119,18 @@ class TapUnavailableError < RuntimeError end end +class TapAlreadyTappedError < RuntimeError + attr_reader :name + + def initialize(name) + @name = name + + super <<-EOS.undent + Tap #{name} already tapped. + EOS + end +end + class TapPinStatusError < RuntimeError attr_reader :name, :pinned |
