diff options
| author | Max Howell | 2012-08-13 09:50:15 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-13 10:14:59 -0400 |
| commit | 3d657746bb2362d3120ec0b1f003dbec78b4b3c6 (patch) | |
| tree | f257fff06fd01c448e47f0a3d3b4af0ba02e4445 /Library/Homebrew | |
| parent | a054dc50190e9eb0a2a88699221730f0d84f31c5 (diff) | |
| download | brew-3d657746bb2362d3120ec0b1f003dbec78b4b3c6.tar.bz2 | |
Encourage clicks on issues link
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 5dd2209b2..b833d8611 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -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}" } |
