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:
parent
627a8463a6
commit
3b30760f5b
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user