aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
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?