diff options
| author | Max Howell | 2012-03-06 18:08:16 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-16 21:06:16 +0000 |
| commit | 2c84be96d8325abf6e3062197c99f5dc12f79109 (patch) | |
| tree | 5018faf0171d9b77ed10aae1b4400a1049b004f5 /Library/Homebrew/exceptions.rb | |
| parent | 6c0950999f0614d5a0b35dd0700d5928e5d95af0 (diff) | |
| download | brew-2c84be96d8325abf6e3062197c99f5dc12f79109.tar.bz2 | |
Concise --config output for build errors
Rationale, lets only pay attention to the output when it matters. Speeding up diagnosis.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 9929d37bc..0d55336d1 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -98,17 +98,17 @@ class BuildError < Homebrew::InstallationError issues_url = ISSUES_URL end - ohai "Exit Status: #{e.exit_status}" - puts "https://github.com/#{repo}/blob/master/#{repo_path}/#{formula_name}.rb#L#{error_line}" - ohai "Environment" - puts Homebrew.config_s - ohai "Build Flags" + if ARGV.verbose? + ohai "Exit Status: #{e.exit_status}" + puts "https://github.com/#{repo}/blob/master/#{repo_path}/#{formula_name}.rb#L#{error_line}" + end + ohai "Build Environment" + Homebrew.dump_build_config puts %["--use-clang" was specified] if ARGV.include? '--use-clang' 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 + onoe "#{e.to_s.strip} (#{formula_name}.rb:#{error_line})" issues = GitHub.issues_for_formula formula_name if issues.empty? puts "If `brew doctor' does not help diagnose the issue, please report the bug:" |
