Encourage clicks on issues link

This commit is contained in:
Max Howell committed 2012-08-13 10:14:59 -04:00
1 parent b079585970
commit eaef050ab9
1 file changed
+3 -1
+3 -1
View File
@@ -125,10 +125,12 @@ class BuildError < Homebrew::InstallationError
puts %["--use-llvm" was specified] if ARGV.include? '--use-llvm'
puts %["--use-gcc" was specified] if ARGV.include? '--use-gcc'
Homebrew.dump_build_env e.env
puts
onoe "#{e.to_s.strip} (#{formula_name}.rb:#{error_line})"
issues = GitHub.issues_for_formula formula_name
puts
if issues.empty?
puts "This may help you fix or report the issue if `brew doctor` does not:"
puts "This link will help resolve the above errors:"
puts " #{Tty.em}#{issues_url}#{Tty.reset}"
else
puts "These existing issues may help you:", *issues.map{ |s| " #{Tty.em}#{s}#{Tty.reset}" }