summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-05-03 01:29:14 -0700
committerEric Wong <normalperson@yhbt.net>2009-05-22 01:54:20 -0700
commit476751e32b8ae454829491ede68f4a062d4cec9f (patch)
tree5c3579afafe98327c4f5d43fada5e9ca66bf5ab0
parent4b50c7d814f770347b96b8b1fa52ff41656670ec (diff)
"out" was an invalid variable in that context...
-rw-r--r--lib/unicorn/app/old_rails.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn/app/old_rails.rb b/lib/unicorn/app/old_rails.rb
index 4b74666..9b3a3b1 100644
--- a/lib/unicorn/app/old_rails.rb
+++ b/lib/unicorn/app/old_rails.rb
@@ -19,8 +19,8 @@ class Unicorn::App::OldRails
           cgi.body)
     rescue Object => e
       err = env['rack.errors']
-      out.write("#{e} #{e.message}\n")
-      e.backtrace.each { |line| out.write("#{line}\n") }
+      err.write("#{e} #{e.message}\n")
+      e.backtrace.each { |line| err.write("#{line}\n") }
     end
     cgi.out  # finalize the response
     cgi.rack_response