Exception: UnbottledError

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

Overview

Raised if the formula or its dependencies are not bottled and are being installed in a situation where a bottle is required.

Instance Method Summary collapse

Constructor Details

#initialize(formulae) ⇒ UnbottledError

Returns a new instance of UnbottledError.



494
495
496
497
498
499
500
501
502
503
# File 'brew/Library/Homebrew/exceptions.rb', line 494

def initialize(formulae)
  msg = +<<~EOS
    The following #{"formula".pluralize(formulae.count)} cannot be installed from #{"bottle".pluralize(formulae.count)} and must be
    built from source.
      #{formulae.to_sentence}
  EOS
  msg += "#{DevelopmentTools.installation_instructions}\n" unless DevelopmentTools.installed?
  msg.freeze
  super(msg)
end