From 65a00e213b15b503375db43adee048ffabe0464a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 3 Dec 2013 22:16:37 -0600 Subject: Make CompilerSelectionError an InstallationError Fixes Homebrew/homebrew#19962. --- Library/Homebrew/exceptions.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/exceptions.rb') diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 2a808ae3e..1e1ec89db 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -218,9 +218,10 @@ end # raised by CompilerSelector if the formula fails with all of # the compilers available on the user's system -class CompilerSelectionError < StandardError - def message; <<-EOS.undent - This formula cannot be built with any available compilers. +class CompilerSelectionError < Homebrew::InstallationError + def initialize f + super f, <<-EOS.undent + #{f.name} cannot be built with any available compilers. To install this formula, you may need to: brew install apple-gcc42 EOS -- cgit v1.2.3