Exception: UnbottledError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- UnbottledError
- 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
-
#initialize(formulae) ⇒ UnbottledError
constructor
A new instance of UnbottledError.
Constructor Details
#initialize(formulae) ⇒ UnbottledError
Returns a new instance of UnbottledError.
569 570 571 572 573 574 575 576 577 578 |
# File 'exceptions.rb', line 569 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 |