aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorMax Howell2012-09-27 15:39:16 -0400
committerMax Howell2012-09-27 15:39:35 -0400
commit1ed0eb1dc372f585b3dbdeaaf0f684a0b0b5e898 (patch)
tree1404e42d85470bea1ae7aa1e1c86a28bfe8200ef /Library/Homebrew/exceptions.rb
parente7b0b858ccea79e28ee66a49f7da2bdcf4deede7 (diff)
downloadhomebrew-1ed0eb1dc372f585b3dbdeaaf0f684a0b0b5e898.tar.bz2
When builds fail verbosely, be verbose
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index b589e3456..34dabee66 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -96,6 +96,14 @@ class BuildError < Homebrew::InstallationError
def dump
logs = "#{ENV['HOME']}/Library/Logs/Homebrew/#{formula}/"
+ if ARGV.verbose?
+ require 'cmd/--config'
+ require 'cmd/--env'
+ ohai "Configuration"
+ Homebrew.dump_build_config
+ ohai "ENV"
+ Homebrew.dump_build_env(env)
+ end
puts
onoe "#{formula.name} did not build"
puts "Logs: #{logs}" unless Dir["#{logs}/*"].empty?