diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 71ce3eccdc22d9ab9d44126d1da5e2390ae20f54..612e4b7053f726d877482a09b41606f1f1791aff 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -173,6 +173,12 @@ class BuildError < Homebrew::InstallationError
     else
       require 'cmd/--config'
       require 'cmd/--env'
+
+      unless formula.core_formula?
+        ohai "Formula"
+        puts "Tap: #{formula.tap}" unless formula.tap == "mxcl/master" # tap lies about non-tap externals
+        puts "Path: #{formula.path.realpath}"
+      end
       ohai "Configuration"
       Homebrew.dump_build_config
       ohai "ENV"
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 3ad91ac8bf51bf6ca8d04f765c5a04e55b475df6..2833951243ddacfda00e1200262688b79555187e 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -495,6 +495,11 @@ class Formula
     end
   end
 
+  # True if this formula is provided by Homebrew itself
+  def core_formula?
+    path.realpath.to_s == Formula.path(name).to_s
+  end
+
   def self.path name
     Pathname.new("#{HOMEBREW_REPOSITORY}/Library/Formula/#{name.downcase}.rb")
   end