diff options
| author | Kevin Moore | 2011-09-08 07:16:32 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-11 09:44:49 -0700 |
| commit | 3b30760f5bfcdfaaf4c555c1f98808a5a22215e7 (patch) | |
| tree | 6d157235ff61b465d1479f3c52045693ad33b63e /Library | |
| parent | 627a8463a6405c78453d2b56dc6582f6aa1c3e58 (diff) | |
| download | brew-3b30760f5bfcdfaaf4c555c1f98808a5a22215e7.tar.bz2 | |
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>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 08faea0e2..b55596aa4 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -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} |
