Publicize 'brew doctor' in build failure message.

This commit is contained in:
Adam Vandenberg 2010-04-20 12:29:17 -07:00
parent db62a9ef9c
commit 0f7b3bd408

View File

@ -407,6 +407,7 @@ rescue BuildError => e
# then replace that string with the following when the github api returns
issues = issues_for_formula(formula_name)
puts "These existing issues may help you:", *issues unless issues.empty?
puts "Consider running `brew doctor` if a large number of installs are failing."
exit 1
rescue RuntimeError, SystemCallError => e
onoe e