<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,6 +22,7 @@
 #  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 FORMULA_META_FILES = %w[README ChangeLog COPYING LICENSE COPYRIGHT AUTHORS]
+PLEASE_REPORT_BUG = &quot;#{Tty.white}Please report this bug to #{Tty.em}#{HOMEBREW_WWW}#{Tty.reset}&quot;
 
 def __make url, name
   require 'formula'</diff>
      <filename>Library/Homebrew/brew.h.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,15 +7,6 @@ ABS__FILE__=File.expand_path(__FILE__)
 
 $:.push(File.expand_path(__FILE__+'/../..'))
 require 'extend/pathname'
-require 'utils'
-require 'hardware'
-require 'formula'
-require 'download_strategy'
-require 'keg'
-require 'utils'
-require 'brew.h'
-require 'hardware'
-require 'update'
 
 # these are defined in global.rb, but we don't want to break our actual
 # homebrew tree, and we do want to test everything :)
@@ -24,12 +15,23 @@ HOMEBREW_REPOSITORY=HOMEBREW_PREFIX
 HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+&quot;cache&quot;
 HOMEBREW_CELLAR=HOMEBREW_PREFIX.parent+&quot;cellar&quot;
 HOMEBREW_USER_AGENT=&quot;Homebrew&quot;
+HOMEBREW_WWW='http://example.com'
 MACOS_VERSION=10.6
 
 (HOMEBREW_PREFIX+'Library'+'Formula').mkpath
 Dir.chdir HOMEBREW_PREFIX
 at_exit { HOMEBREW_PREFIX.parent.rmtree }
 
+require 'utils'
+require 'hardware'
+require 'formula'
+require 'download_strategy'
+require 'keg'
+require 'utils'
+require 'brew.h'
+require 'hardware'
+require 'update'
+
 # for some reason our utils.rb safe_system behaves completely differently 
 # during these tests. This is worrying for sure.
 def safe_system *args</diff>
      <filename>Library/Homebrew/test/unittest.rb</filename>
    </modified>
    <modified>
      <diff>@@ -250,16 +250,22 @@ rescue SystemExit
 rescue Interrupt =&gt; e
   puts # seemingly a newline is typical
   exit 130
+rescue BuildError =&gt; e
+  ohai &quot;Backtrace&quot;
+  puts e.backtrace
+  ohai &quot;Environment&quot;
+  dump_config
+  puts &quot;Exit status: #{e.status}&quot;
+  onoe e
+  puts PLEASE_REPORT_BUG
+  exit 1
+rescue RuntimeError, SystemCallError =&gt; e
+  onoe e
+  puts e.backtrace if ARGV.debug?
+  exit 1
 rescue Exception =&gt; e
-  fatal = !(RuntimeError === e or SystemCallError === e)
-
   onoe e
-  if BuildError === e or fatal
-    puts &quot;#{Tty.white}Please report this bug to #{Tty.em}#{HOMEBREW_WWW}#{Tty.reset}&quot;
-    dump_config
-    puts &quot;Exit status: #{e.status}&quot; if BuildError === e
-  end
-  puts e.backtrace if fatal or ARGV.debug?
-
+  puts PLEASE_REPORT_BUG
+  puts e.backtrace
   exit 1
 end</diff>
      <filename>bin/brew</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>35a9b0468d2590756281c4c48c2c6c59e59d0576</id>
    </parent>
  </parents>
  <author>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </author>
  <url>http://github.com/piranha/homebrew/commit/70bed072472f61ce15711ab17fafeb2381b9eef5</url>
  <id>70bed072472f61ce15711ab17fafeb2381b9eef5</id>
  <committed-date>2009-11-11T17:37:02-08:00</committed-date>
  <authored-date>2009-11-11T17:33:14-08:00</authored-date>
  <message>More tweaking of main exception handler output</message>
  <tree>db87b88afb5db6a2248a7b1bba7b3337722e57c3</tree>
  <committer>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </committer>
</commit>
