Exception: UnbottledError

Inherits:
RuntimeError
  • Object
show all
Defined in:
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.



559
560
561
562
563
564
565
566
567
568
# File 'exceptions.rb', line 559

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