<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -236,37 +236,27 @@ begin
   end
 
 rescue FormulaUnspecifiedError
-  puts &quot;This command requires a formula argument&quot;
-  exit 1
+  abort &quot;This command requires a formula argument&quot;
 rescue KegUnspecifiedError
-  puts &quot;This command requires a keg argument&quot;
-  exit 1
+  abort &quot;This command requires a keg argument&quot;
 rescue UsageError
   onoe &quot;Invalid usage&quot;
-  puts ARGV.usage
-  exit 1
+  abort ARGV.usage
 rescue SystemExit
   puts &quot;Kernel.exit&quot; if ARGV.verbose?
-  exit 1
 rescue Interrupt =&gt; e
   puts # seemingly a newline is typical
   exit 130
-rescue SystemCallError, RuntimeError =&gt; e
-  if ARGV.debug?
-    onoe e.inspect
-    puts e.backtrace
-  else
-    onoe e
-    if e.kind_of? BuildError
-      puts please_report_bug
-      puts &quot;Exit Status: #{e.status}&quot;
-    end
-  end
-  exit 1
 rescue Exception =&gt; e
-  onoe &quot;Homebrew has failed you :(&quot;
-  puts please_report_bug
-  puts e.inspect
-  puts e.backtrace
+  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?
+
   exit 1
 end</diff>
      <filename>bin/brew</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b669f4b300bf5cc43fc10ba3e1a196a2cddb67c2</id>
    </parent>
  </parents>
  <author>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </author>
  <url>http://github.com/KieranP/homebrew/commit/a785a5ee8104b0f5764416d031c86d7dc2124727</url>
  <id>a785a5ee8104b0f5764416d031c86d7dc2124727</id>
  <committed-date>2009-11-11T10:43:03-08:00</committed-date>
  <authored-date>2009-11-11T10:38:50-08:00</authored-date>
  <message>dump_config for certain exceptions

Ideally we could do a get request and fill in the issue form at GitHub. Presumably though, we'd only do this if the user typed brew report or somesuch.

Someone should get that implemented!</message>
  <tree>aa9907376e7c9718eade8ada53f058a250e8af42</tree>
  <committer>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </committer>
</commit>
