aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorMax Howell2012-03-06 18:08:16 +0000
committerMax Howell2012-03-16 21:06:16 +0000
commit126cc9fa15f1211f9f38eb68a9f8b7984682a1e2 (patch)
tree2fa3301489c7b871bbedc3ce1faf9236c4128841 /Library/Homebrew/exceptions.rb
parentf8e70f93c3f153b145e03765f77320ff3da64dde (diff)
downloadhomebrew-126cc9fa15f1211f9f38eb68a9f8b7984682a1e2.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.rb14
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:"