Exception: Keg::AlreadyLinkedError

Inherits:
RuntimeError
  • Object
show all
Defined in:
Library/Homebrew/keg.rb

Instance Method Summary collapse

Constructor Details

#initialize(keg) ⇒ AlreadyLinkedError



8
9
10
11
12
13
# File 'Library/Homebrew/keg.rb', line 8

def initialize(keg)
  super <<~EOS
    Cannot link #{keg.name}
    Another version is already linked: #{keg.linked_keg_record.resolved_path}
    EOS
end