diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index b589e3456a1baca73b2082aa81bda7b870910880..34dabee66b9c56a7c929e0f0a6ed7f6fa1f9f579 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?
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 78269c88db4f561450784e0115173176bd942eb7..58d207caf56d9d43c05d2ee924c5e38451e55c0a 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -554,7 +554,7 @@ protected
   rescue
     if f
       f.flush
-      Kernel.system "/usr/bin/tail -n 5 #{logfn}"
+      Kernel.system "/usr/bin/tail -n 5 #{logfn}" unless ARGV.verbose?
       require 'cmd/--config'
       $f = f
       def Homebrew.puts(*foo); $f.puts *foo end