about summary refs log tree commit homepage
path: root/lib/mongrel/rails.rb
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-03-02 04:26:08 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-03-02 04:26:08 +0000
commit5e943d1fbccfd5dc79657f0310d413fdf28fc203 (patch)
treebf508339afad4610c156aab9e8a9ac97bb38b74f /lib/mongrel/rails.rb
parent5c13c5dd9d92c60223829881b9835ee9fb02f400 (diff)
downloadunicorn-5e943d1fbccfd5dc79657f0310d413fdf28fc203.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@68 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel/rails.rb')
-rw-r--r--lib/mongrel/rails.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mongrel/rails.rb b/lib/mongrel/rails.rb
index 73d4272..90a1165 100644
--- a/lib/mongrel/rails.rb
+++ b/lib/mongrel/rails.rb
@@ -58,8 +58,10 @@ class RailsHandler < Mongrel::HttpHandler
 
         # This finalizes the output using the proper HttpResponse way
         cgi.out {""}
+      rescue Errno::EPIPE
+        # ignored
       rescue Object => rails_error
-        STDERR.puts "calling Dispatcher.dispatch #{rails_error}"
+        STDERR.puts "Error calling Dispatcher.dispatch #{rails_error.inspect}"
         STDERR.puts rails_error.backtrace.join("\n")
       end
     end