UnsatisfiedExternalDependencyError: init error

Pass message and formula to super so useful output occurs.

Closes Homebrew/homebrew#7507.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
Kevin Moore 2011-09-08 07:16:32 -07:00 committed by Charlie Sharpsteen
parent 627a8463a6
commit 3b30760f5b

View File

@ -59,12 +59,12 @@ class UnsatisfiedExternalDependencyError < Homebrew::InstallationError
def initialize formula, type
@type = type
@formula = formula
super formula, get_message(formula)
end
def message
def get_message formula
<<-EOS.undent
Unsatisfied dependency: #{formula}
Unsatisfied external dependency: #{formula}
Homebrew does not provide #{type.to_s.capitalize} dependencies, #{tool} does:
#{command_line} #{formula}